Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mesa
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,900
Issues
1,900
List
Boards
Labels
Milestones
Merge Requests
326
Merge Requests
326
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
mesa
Commits
fec8a1db
Commit
fec8a1db
authored
Apr 03, 2010
by
Marek Olšák
Committed by
Keith Whitwell
Apr 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: fix assertion failures in pipe_buffer_flush_mapped_range
parent
1ff3984c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/gallium/auxiliary/util/u_inlines.h
src/gallium/auxiliary/util/u_inlines.h
+1
-1
src/gallium/auxiliary/util/u_upload_mgr.c
src/gallium/auxiliary/util/u_upload_mgr.c
+1
-1
No files found.
src/gallium/auxiliary/util/u_inlines.h
View file @
fec8a1db
...
...
@@ -223,7 +223,7 @@ pipe_buffer_flush_mapped_range(struct pipe_context *pipe,
assert
(
length
);
assert
(
transfer
->
box
.
x
<=
offset
);
assert
(
transfer
->
box
.
x
+
transfer
->
box
.
width
<=
offset
+
leng
th
);
assert
(
offset
+
length
<=
transfer
->
box
.
x
+
transfer
->
box
.
wid
th
);
/* Match old screen->buffer_flush_mapped_range() behaviour, where
* offset parameter is relative to the start of the buffer, not the
...
...
src/gallium/auxiliary/util/u_upload_mgr.c
View file @
fec8a1db
...
...
@@ -95,7 +95,7 @@ my_buffer_write(struct pipe_context *pipe,
assert
(
dirty_size
>=
size
);
assert
(
size
);
map
=
pipe_buffer_map_range
(
pipe
,
buf
,
offset
,
size
,
map
=
pipe_buffer_map_range
(
pipe
,
buf
,
offset
,
dirty_size
,
PIPE_TRANSFER_WRITE
|
PIPE_TRANSFER_FLUSH_EXPLICIT
|
PIPE_TRANSFER_DISCARD
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment