Revert "radeonsi: only set BC_OPTIMIZE_DISABLE when necessary"
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 13 Jan 2015 07:38:52 +0000 (16:38 +0900)
committerMichel Dänzer <michel@daenzer.net>
Thu, 15 Jan 2015 06:09:48 +0000 (15:09 +0900)
commit82b7ee62fc4bbe014f61a60bccf694b706c7247d
treee6c75d8fb30597142b41156e50b111acaf101b80
parenta6a75f1286e1a2e7a0fb856849802b40474c6336
Revert "radeonsi: only set BC_OPTIMIZE_DISABLE when necessary"

This reverts commit 0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0.

It caused flickering artifacts in Steam games such as Team Fortress 2 or
Left 4 Dead 2.

We could probably only enable this optimization by also making sure the
shader code only uses either SI_PARAM_LINEAR_CENTROID or
SI_PARAM_LINEAR_CENTER, not both. This would probably require a shader
variant.

Sorry I didn't remember this when reviewing the reverted change.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state_shaders.c