projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8590e0
)
Cell: additional assertions
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 18:21:25 +0000
(11:21 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 18:31:58 +0000
(11:31 -0700)
src/mesa/pipe/cell/spu/spu_main.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/cell/spu/spu_main.c
b/src/mesa/pipe/cell/spu/spu_main.c
index
5b50ec6
..
62f6a35
100644
(file)
--- 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));
}