summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xfonts.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-07-18 15:25:10 -0700
committerEric Anholt <[email protected]>2011-07-20 11:10:00 -0700
commitdc7422405f6f3c201993251e4665bb9ec1b59db0 (patch)
treee46c8edc36af1504664dce8d63f3f69cf4673d60 /src/mesa/drivers/x11/xfonts.h
parent540e66b3bebb5ae82422e386aa178147ea14a39e (diff)
i965: Avoid kernel BUG_ON if we happen to wait on the pipe_control w/a BO.
For this and occlusion queries, we're trying to avoid setting I915_GEM_DOMAIN_RENDER for the write domain, because the data written is definitely not going through the render cache, but we do need to tell the kernel that the object has been written. However, with using I915_GEM_DOMAIN_GTT, the kernel on retiring the batchbuffer sees that the w/a BO has a write domain of GTT, and puts it on the flushing list. If something tries to wait for that BO to finish rendering (such as the AUB dumper reading the contents of BOs), we get into wait_request (since obj->active) but with a 0 seqno (since the object is on the flushing list, not actually on a ringbuffer), and BUG_ONs. To avoid the kernel bug (which I'm hoping to delete soon anyway), just use I915_GEM_DOMAIN_INSTRUCTION like occlusion queries do. This doesn't result in more flushing, because we invalidate INSTRUCTION on every batchbuffer now that we're state streaming, anyway. Reviewed-by: Kenneth Graunke <[email protected]> Tested-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/x11/xfonts.h')
0 files changed, 0 insertions, 0 deletions