summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-02-10 18:38:53 -0800
committerCorbin Simpson <[email protected]>2010-02-10 18:40:12 -0800
commit229db2b8ade33571e4cece1d838234895db220c2 (patch)
tree37831eb0fc978d15574b7efdc6bfbc8f3f96f94c /src/gallium/drivers/r300/r300_fs.c
parent218590f70723ce0683f70a0c7aab229f9bbd89a6 (diff)
r300g: Work around "defect" in r300compiler.
r300compiler doesn't handle half swizzles for vert shaders, which don't have them. So, for now, disable them.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index 75a05498eb3..ae4c62b2f1d 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -179,6 +179,7 @@ static void r300_translate_fragment_shader(
/* Translate TGSI to our internal representation */
ttr.compiler = &compiler.Base;
ttr.info = &fs->info;
+ ttr.use_half_swizzles = TRUE;
r300_tgsi_to_rc(&ttr, fs->state.tokens);