cell: updates in response to draw's struct vertex_info changes
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Oct 2008 14:44:29 +0000 (08:44 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Oct 2008 14:44:29 +0000 (08:44 -0600)
src/gallium/drivers/cell/spu/spu_tri.c

index 87991c313683aeff37dcdef89897bc65d0879ef4..a62d4f0f2ff5cb63e3d685d078cdb3d431c210bd 100644 (file)
@@ -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: