diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 11:21:25 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 11:31:58 -0700 |
commit | 3d1b0f4c57edaf5707e4952617dcd6c57dfbdc65 (patch) | |
tree | da3be8db9612bfb7f568b83470658543661f6250 /src/mesa/pipe | |
parent | a8590e097e965c01ede7df47ff752b0e7adabace (diff) |
Cell: additional assertions
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c index 5b50ec6953..62f6a357ba 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)); } |