projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba8c119
)
llvmpipe: Avoid yet another variable size array.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 22 Oct 2009 18:03:04 +0000
(19:03 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 22 Oct 2009 18:12:14 +0000
(19:12 +0100)
src/gallium/drivers/llvmpipe/lp_setup.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup.c
b/src/gallium/drivers/llvmpipe/lp_setup.c
index b14c265b7fdf31e6e23ac772d00d9e2da001a362..c43b3da4508dda385abee83a4ff2a2682a6e5538 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/
src/gallium/drivers/llvmpipe/lp_setup.c
@@
-278,11
+278,13
@@
clip_emit_quad( struct setup_context *setup, struct quad_header *quad )
* until we codegenerate single-quad variants of the fragment pipeline
* we need this hack. */
const unsigned nr_quads = TILE_VECTOR_HEIGHT*TILE_VECTOR_WIDTH/QUAD_SIZE;
- struct quad_header quads[
nr_quads
];
- struct quad_header *quad_ptrs[
nr_quads
];
+ struct quad_header quads[
4
];
+ struct quad_header *quad_ptrs[
4
];
int x0 = block_x(quad->input.x0);
unsigned i;
+ assert(nr_quads == 4);
+
for(i = 0; i < nr_quads; ++i) {
int x = x0 + 2*i;
if(x == quad->input.x0)