From: Brian Date: Mon, 28 Jan 2008 18:21:25 +0000 (-0700) Subject: Cell: additional assertions X-Git-Tag: 062012170305~17580^2~390^2~2812 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d1b0f4c57edaf5707e4952617dcd6c57dfbdc65;p=profile%2Fivi%2Fmesa.git Cell: additional assertions --- diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c index 5b50ec6..62f6a35 100644 --- a/src/mesa/pipe/cell/spu/spu_main.c +++ b/src/mesa/pipe/cell/spu/spu_main.c @@ -441,9 +441,12 @@ cmd_state_sampler(const struct pipe_sampler_state *state) static void cmd_state_vertex_info(const struct vertex_info *vinfo) { - if (Debug) + if (Debug) { printf("SPU %u: VERTEX_INFO num_attribs=%u\n", spu.init.id, vinfo->num_attribs); + } + ASSERT(vinfo->num_attribs >= 1); + ASSERT(vinfo->num_attribs <= 8); memcpy(&spu.vertex_info, vinfo, sizeof(*vinfo)); }