i965/fs: Don't use Gen7-style scratch block reads on Gen9+.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 25 Nov 2015 19:02:15 +0000 (21:02 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 26 Nov 2015 12:07:58 +0000 (14:07 +0200)
commitbc8182808aea111aea3cfcba4da3dd861689d890
tree21bb85780f2998adf524ace22aa7e6c12f5714a0
parent3e6d0d2ca446cb7b3ad8f32bd0d93275a7ed34bc
i965/fs: Don't use Gen7-style scratch block reads on Gen9+.

Unfortunately Gen7 scratch block reads and writes seem to be hardwired
to BTI 255 even on Gen9+ where that index causes the dataport to do an
IA-coherent read or write.  This change is required for the next patch
to be correct, since otherwise we would be writing to the scratch
space using non-coherent access and then reading it back using
IA-coherent reads, which wouldn't be guaranteed to return the value
previously written to the same location without introducing an
additional HDC flush in between.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp