i965: Fix render target read domains.
authorEric Anholt <eric@anholt.net>
Thu, 19 Feb 2009 21:53:46 +0000 (13:53 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 21 Feb 2009 18:53:05 +0000 (10:53 -0800)
commit078e8a61b2aa547c6794f586a5c8bfaa575bb066
tree0e6a52f52dfdc8ff1f7be6672e352c125517825a
parent776971218ef6c6749fcb882a95ae5fc3a1ff5059
i965: Fix render target read domains.

We were asking for something illegal (write_domain != 0 && read_domains !=
write_domain) because at the time of writing the region surfaces were used
for texturing occasionally as well, and we weren't really clear on the model
GEM was going to use.

This reliably triggered a kernel bug with domain handling, resulting in
oglconform mustpass.c failure.  Of course, it only became visible after
01bc4d441fd6821ad9fc20d5e9544e4e587e4ff0 cleaned up some gratuitous flushing.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c