summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 04001ee129..a429457625 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -170,6 +170,12 @@ static const float * get_shader_constant(
vec[1] = 1.0 / tex->height0;
break;
+ /* Texture compare-fail value. Shouldn't ever show up, but if
+ * it does, we'll be ready. */
+ case RC_STATE_SHADOW_AMBIENT:
+ vec[3] = 0;
+ break;
+
case RC_STATE_R300_VIEWPORT_SCALE:
if (r300->tcl_bypass) {
vec[0] = 1;