Revert "r300g: Don't handle SHADOW_AMBIENT."
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 30 Jan 2010 22:09:04 +0000 (14:09 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 30 Jan 2010 22:30:13 +0000 (14:30 -0800)
This reverts commit 627a45848faf9e6d19d386b9eb30d36bf18d0998.

I was wrong. Who could have known? :3

src/gallium/drivers/r300/r300_emit.c

index 04001ee129ee1c4207565238c1291a6592fc980a..a429457625a285c77ecb77f83dea635c07c2acbc 100644 (file)
@@ -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;