llvmpipe: Avoid variable size arrays.

Not really variable size, but MSVC still doesn't like them.
This commit is contained in:
José Fonseca 2009-10-22 19:02:04 +01:00
parent 01b85e2923
commit 9aafa1fbd2
3 changed files with 7 additions and 4 deletions

View file

@ -56,6 +56,9 @@
#include "lp_bld_type.h"
#define LP_TEST_NUM_SAMPLES 32
void
write_tsv_header(FILE *fp);

View file

@ -477,8 +477,8 @@ test_one(unsigned verbose,
char *error = NULL;
blend_test_ptr_t blend_test_ptr;
boolean success;
const unsigned n = 32;
int64_t cycles[n];
const unsigned n = LP_TEST_NUM_SAMPLES;
int64_t cycles[LP_TEST_NUM_SAMPLES];
double cycles_avg = 0.0;
unsigned i, j;

View file

@ -156,8 +156,8 @@ test_one(unsigned verbose,
char *error = NULL;
conv_test_ptr_t conv_test_ptr;
boolean success;
const unsigned n = 32;
int64_t cycles[n];
const unsigned n = LP_TEST_NUM_SAMPLES;
int64_t cycles[LP_TEST_NUM_SAMPLES];
double cycles_avg = 0.0;
unsigned num_srcs;
unsigned num_dsts;