radeonsi: pass alpha_ref value to PS in the user sgpr
authorVadim Girlin <vadimgirlin@gmail.com>
Sun, 13 Oct 2013 15:53:54 +0000 (19:53 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Sun, 13 Oct 2013 16:03:35 +0000 (20:03 +0400)
commit453ea2d309c0314bea8a209f536e2b3c2c4d92c6
tree8c8f37fa092c6c4e14cfd1e933a8650272f7aa6f
parent10ddeb910ba8386a6b46396d827aed4116091b0b
radeonsi: pass alpha_ref value to PS in the user sgpr

Currently it's hardcoded in the shader, so every change requires
compilation of the shader variant, killing the performance
in Serious Sam 3 and probably other apps.

This patch passes alpha_ref in the user sgpr and removes it from
the shader key.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state.c