Mesa (gallium-0.2): cell: compile fix: alpha.ref is now alpha.ref_value

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 7 20:05:51 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 96d230e107abcf4c105e6e7c871124f246763222
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=96d230e107abcf4c105e6e7c871124f246763222

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Feb  7 13:01:53 2009 -0700

cell: compile fix: alpha.ref is now alpha.ref_value

---

 src/gallium/drivers/cell/ppu/cell_gen_fragment.c   |    2 +-
 src/gallium/drivers/cell/spu/spu_per_fragment_op.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_gen_fragment.c b/src/gallium/drivers/cell/ppu/cell_gen_fragment.c
index 9bdc71b..66d4b3b 100644
--- a/src/gallium/drivers/cell/ppu/cell_gen_fragment.c
+++ b/src/gallium/drivers/cell/ppu/cell_gen_fragment.c
@@ -161,7 +161,7 @@ gen_alpha_test(const struct pipe_depth_stencil_alpha_state *dsa,
    if ((dsa->alpha.func != PIPE_FUNC_NEVER) &&
        (dsa->alpha.func != PIPE_FUNC_ALWAYS)) {
       /* load/splat the alpha reference float value */
-      spe_load_float(f, ref_reg, dsa->alpha.ref);
+      spe_load_float(f, ref_reg, dsa->alpha.ref_value);
    }
 
    /* emit code to do the alpha comparison, updating 'mask' */
diff --git a/src/gallium/drivers/cell/spu/spu_per_fragment_op.c b/src/gallium/drivers/cell/spu/spu_per_fragment_op.c
index 683664e..eba9f95 100644
--- a/src/gallium/drivers/cell/spu/spu_per_fragment_op.c
+++ b/src/gallium/drivers/cell/spu/spu_per_fragment_op.c
@@ -85,7 +85,7 @@ spu_fallback_fragment_ops(uint x, uint y,
     * Do alpha test
     */
    if (spu.depth_stencil_alpha.alpha.enabled) {
-      vector float ref = spu_splats(spu.depth_stencil_alpha.alpha.ref);
+      vector float ref = spu_splats(spu.depth_stencil_alpha.alpha.ref_value);
       vector unsigned int amask;
 
       switch (spu.depth_stencil_alpha.alpha.func) {




More information about the mesa-commit mailing list