projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ae076b
)
gallium: Remove temporary hack for the absence of a discard flag.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Jan 2010 17:13:15 +0000
(09:13 -0800)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Jan 2010 23:18:40 +0000
(15:18 -0800)
PIPE_BUFFER_USAGE_DISCARD flag now exists.
src/gallium/include/pipe/p_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_inlines.h
b/src/gallium/include/pipe/p_inlines.h
index 5fbd62a03d2bba16e3f9bda3d8cbb6ede5edb222..6949f56574cf1e43f3be0721f2725ae730c91b32 100644
(file)
--- a/
src/gallium/include/pipe/p_inlines.h
+++ b/
src/gallium/include/pipe/p_inlines.h
@@
-63,13
+63,6
@@
pipe_buffer_map(struct pipe_screen *screen,
if(screen->buffer_map_range) {
unsigned offset = 0;
unsigned length = buf->size;
-
- /* XXX: Actually we should be using/detecting DISCARD
- * instead of assuming that WRITE implies discard */
- if((usage & PIPE_BUFFER_USAGE_CPU_WRITE) &&
- !(usage & PIPE_BUFFER_USAGE_DISCARD))
- usage |= PIPE_BUFFER_USAGE_CPU_READ;
-
return screen->buffer_map_range(screen, buf, offset, length, usage);
}
else