summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/spu/tri.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-10 17:14:06 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-10 17:14:06 -0700
commit6c11485405700865895b7c5f14e08bc5bede2a35 (patch)
tree82bad73fe4260cd14ee0e63e384b4b09ed8b022d /src/mesa/pipe/cell/spu/tri.c
parentb3247225423213c156ce4f428d1d246758a96d50 (diff)
Cell: use new ASSERT macro instead of standard assert
The later doesn't seem to work properly in SPU code.
Diffstat (limited to 'src/mesa/pipe/cell/spu/tri.c')
-rw-r--r--src/mesa/pipe/cell/spu/tri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/cell/spu/tri.c b/src/mesa/pipe/cell/spu/tri.c
index 78cc7a591f..b40f35bc69 100644
--- a/src/mesa/pipe/cell/spu/tri.c
+++ b/src/mesa/pipe/cell/spu/tri.c
@@ -258,7 +258,7 @@ pack_color(const float color[4])
case PIPE_FORMAT_B8G8R8A8_UNORM:
return (b << 24) | (g << 16) | (r << 8) | a;
default:
- assert(0);
+ ASSERT(0);
return 0;
}
}
@@ -613,7 +613,7 @@ static void tri_linear_coeff( struct setup_stage *setup,
float a = setup->ebot.dy * majda - botda * setup->emaj.dy;
float b = setup->emaj.dx * botda - majda * setup->ebot.dx;
- assert(slot < PIPE_MAX_SHADER_INPUTS);
+ ASSERT(slot < PIPE_MAX_SHADER_INPUTS);
setup->coef[slot].dadx[i] = a * setup->oneoverarea;
setup->coef[slot].dady[i] = b * setup->oneoverarea;
@@ -777,7 +777,7 @@ static void subtriangle( struct setup_stage *setup,
int y, start_y, finish_y;
int sy = (int)eleft->sy;
- assert((int)eleft->sy == (int) eright->sy);
+ ASSERT((int)eleft->sy == (int) eright->sy);
/* clip top/bottom */
start_y = sy;