OSDN Git Service

i965: Explicitly write the "TR DS Cache Disable" bit at TCS EOT.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Jan 2016 09:53:57 +0000 (01:53 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Feb 2016 22:54:26 +0000 (14:54 -0800)
commit830b075e86e3e9af1bf12316d0f9d888a85a973b
tree409955666698a2186cc17c4a80065902957580bb
parent8b0fb1c152fe191768953aa8c77b89034a377f83
i965: Explicitly write the "TR DS Cache Disable" bit at TCS EOT.

Bit 0 of the Patch Header is "TR DS Cache Disable".  Setting that bit
disables the DS Cache for tessellator-output topologies resulting in
stitch-transition regions (but leaves it enabled for other cases).

We probably shouldn't leave this to chance - the URB could contain
garbage - which could result in the cache randomly being turned on
or off.

This patch makes the final EOT write 0 to the first DWord (which
only contains this one bit).  This ensures the cache is always on.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp