Module: Mesa
Branch: master
Commit: a794c660d30b04ed50482cf2f26e0a7f9687319e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a794c660d30b04ed50482cf2f26e0a7f9687319e

Author: Corbin Simpson <[email protected]>
Date:   Sat Jan 30 14:09:04 2010 -0800

Revert "r300g: Don't handle SHADOW_AMBIENT."

This reverts commit 627a45848faf9e6d19d386b9eb30d36bf18d0998.

I was wrong. Who could have known? :3

---

 src/gallium/drivers/r300/r300_emit.c |    6 ++++++
 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 04001ee..a429457 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to