mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
llvmpipe: Avoid variable size arrays.
Not really variable size, but MSVC still doesn't like them.
This commit is contained in:
parent
01b85e2923
commit
9aafa1fbd2
3 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue