mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
llvmpipe: Avoid yet another variable size array.
This commit is contained in:
parent
ba8c11923a
commit
719984afca
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue