i965/gen6: Use an BO instead of writing to address 0 for PIPE_CONTROL W/A.
authorEric Anholt <eric@anholt.net>
Sat, 18 Jun 2011 01:20:36 +0000 (18:20 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 20 Jun 2011 15:37:43 +0000 (08:37 -0700)
commitdfada714f8db3deea2fea3583c3c166a78db1117
tree7c192cb7f1a98c7c0fa081b8d602ec6969e5c209
parent8f9e8d79c8c180e4254d01c688969d6d45386891
i965/gen6: Use an BO instead of writing to address 0 for PIPE_CONTROL W/A.

This was spectacularly unsafe.  On my system, address 0 happens to be
the hardware status page for the render ring, and the first quadword
of that happens to contain nothing we ever look at, but I sure didn't
look forward to having to debug some day when, for example, the kernel
happened to bind the ringbuffer before binding the hwsp.
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h