diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-08-07 17:26:01 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-08-07 18:35:21 -0700 |
commit | 12da1bcb3b3e9f859439a9aceff47ea04f3550c7 (patch) | |
tree | 834b2ec8f43bbf9115379875cf1f885f7ec791d4 /src | |
parent | 195e995968b31dbde8c223d306b2dbf56170d1e5 (diff) |
r300g/compiler/tests: Fix segfault
CC: "9.2" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d691ba4d9412b68dd56a300549bafc733e1bb7ee)
Diffstat (limited to 'src')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c index 819fb6c88d5..3244d9334d7 100644 --- a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c +++ b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c @@ -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} }; diff --git a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c index eeb6b072d20..511596ce8b5 100644 --- a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c +++ b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c @@ -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); diff --git a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c index 33b27fcdca4..3e9759409b1 100644 --- a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c +++ b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c @@ -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} }; |