Mesa (gallium-0.2): cell: updates in response to draw' s struct vertex_info changes

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 10 14:44:42 UTC 2008


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

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Oct 10 08:44:29 2008 -0600

cell: updates in response to draw's struct vertex_info changes

---

 src/gallium/drivers/cell/spu/spu_tri.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/cell/spu/spu_tri.c b/src/gallium/drivers/cell/spu/spu_tri.c
index 87991c3..a62d4f0 100644
--- a/src/gallium/drivers/cell/spu/spu_tri.c
+++ b/src/gallium/drivers/cell/spu/spu_tri.c
@@ -215,7 +215,7 @@ clip_emit_quad(struct setup_stage *setup)
 static INLINE void
 eval_coeff(uint slot, float x, float y, vector float result[4])
 {
-   switch (spu.vertex_info.interp_mode[slot]) {
+   switch (spu.vertex_info.attrib[slot].interp_mode) {
    case INTERP_CONSTANT:
       result[QUAD_TOP_LEFT] =
       result[QUAD_TOP_RIGHT] =
@@ -776,7 +776,7 @@ static void setup_tri_coefficients(void)
    uint i;
 
    for (i = 0; i < spu.vertex_info.num_attribs; i++) {
-      switch (spu.vertex_info.interp_mode[i]) {
+      switch (spu.vertex_info.attrib[i].interp_mode) {
       case INTERP_NONE:
          break;
       case INTERP_POS:




More information about the mesa-commit mailing list