summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_shader.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2012-09-06 18:03:38 +0200
committerMichel Dänzer <michel@daenzer.net>2012-10-26 15:51:17 +0200
commit691f08dbeaeb71bfa26784e7ec18aa07e34893fb (patch)
tree4e940541fbad34bca90ed9880f2fe110289a338f /src/gallium/drivers/radeonsi/radeonsi_shader.h
parent44ef033c25ee0dde97a2339d4439560885d52cad (diff)
downloadexternal_mesa3d-691f08dbeaeb71bfa26784e7ec18aa07e34893fb.zip
external_mesa3d-691f08dbeaeb71bfa26784e7ec18aa07e34893fb.tar.gz
external_mesa3d-691f08dbeaeb71bfa26784e7ec18aa07e34893fb.tar.bz2
radeonsi: Handle TGSI_SEMANTIC_BCOLOR.
Put the back face colour right after the front face colour in the LDS parameter space. Fixes 18 piglit tests related to two sided lighting. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h
index 9d382d5..23030bc 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h
@@ -80,6 +80,7 @@ struct si_shader {
struct si_shader_key {
unsigned export_16bpc:8;
unsigned nr_cbufs:4;
+ unsigned color_two_side:1;
};
struct si_pipe_shader {