r300g/compiler/tests: Fix segfault

CC: "9.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Tom Stellard 2013-08-07 17:26:01 -07:00
parent 5575fdaccf
commit d691ba4d94
3 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ static void test_runner_rc_optimize(struct test_result * result)
unsigned radeon_compiler_optimize_run_tests()
{
struct test tests[] = {
static struct test tests[] = {
{"rc_optimize() => peephole_mul_omod()", test_runner_rc_optimize},
{NULL, NULL}
};

View file

@ -91,8 +91,8 @@ static void tex_1d_swizzle(struct test_result *result)
unsigned radeon_compiler_regalloc_run_tests()
{
struct test tests[] = {
{"rc_pair_regalloc() => TEX 1D Swizzle - r300", tex_1d_swizzle},
static struct test tests[] = {
{"rc_pair_regalloc() => TEX 1D Swizzle - r300", tex_1d_swizzle },
{NULL, NULL}
};
return run_tests(tests);

View file

@ -96,7 +96,7 @@ static void test_runner_rc_inst_can_use_presub(struct test_result * result)
unsigned radeon_compiler_util_run_tests()
{
struct test tests[] = {
static struct test tests[] = {
{"rc_inst_can_use_presub()", test_runner_rc_inst_can_use_presub},
{NULL, NULL}
};