llvmpipe: Avoid variable size arrays.
Not really variable size, but MSVC still doesn't like them.
This commit is contained in:
@@ -56,6 +56,9 @@
|
||||
#include "lp_bld_type.h"
|
||||
|
||||
|
||||
#define LP_TEST_NUM_SAMPLES 32
|
||||
|
||||
|
||||
void
|
||||
write_tsv_header(FILE *fp);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user