Mesa (mesa_7_5_branch): gallium: compare the actual register, not all the inputs

Zack Rusin zack at kemper.freedesktop.org
Sat Jul 11 17:45:31 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 1c1307e7c55844f63f7bd7ac02c64f4b936f3c66
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c1307e7c55844f63f7bd7ac02c64f4b936f3c66

Author: Zack Rusin <zackr at vmware.com>
Date:   Sat Jul 11 13:48:41 2009 -0400

gallium: compare the actual register, not all the inputs

otherwise we decrement indexes for all registers

---

 src/mesa/state_tracker/st_atom_shader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
index 5219119..8b3bb5c 100644
--- a/src/mesa/state_tracker/st_atom_shader.c
+++ b/src/mesa/state_tracker/st_atom_shader.c
@@ -139,7 +139,7 @@ find_translated_vp(struct st_context *st,
          if (fragInputsRead & (1 << inAttr)) {
             stfp->input_to_slot[inAttr] = numIn;
             numIn++;
-            if ((fragInputsRead & FRAG_BIT_FOGC)) {
+            if (((1 << inAttr) & FRAG_BIT_FOGC)) {
                /* leave placeholders for the
                 * extra registers we extract from fog */
                if (stfp->Base.UsesFrontFacing) {




More information about the mesa-commit mailing list