summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-03 21:28:56 +0900
committerJosé Fonseca <[email protected]>2008-07-03 21:28:56 +0900
commitade03755bcaec2dedb5cd4d13160ba366ee804cd (patch)
tree82e24803fb86f904403c07117c69041d0c9f8a09 /src
parent79ca9734ea65ac9cbf866b1aacc538351086accf (diff)
pipebuffer: Silent warnings.
Although rarely hit in normal apps, they are too noisy with test suites.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
index 0ffca298cd2..f599bee07e7 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
@@ -174,7 +174,9 @@ _fenced_buffer_finish(struct fenced_buffer *fenced_buf)
struct fenced_buffer_list *fenced_list = fenced_buf->list;
struct pipe_winsys *winsys = fenced_list->winsys;
+#if 0
debug_warning("waiting for GPU");
+#endif
assert(fenced_buf->fence);
if(fenced_buf->fence) {
@@ -278,11 +280,13 @@ fenced_buffer_map(struct pb_buffer *buf,
_fenced_buffer_finish(fenced_buf);
}
+#if 0
/* Check for CPU write access (read is OK) */
if(fenced_buf->flags & PIPE_BUFFER_USAGE_CPU_READ_WRITE) {
/* this is legal -- just for debugging */
debug_warning("concurrent CPU writes");
}
+#endif
map = pb_map(fenced_buf->buffer, flags);
if(map) {