mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
r300g/compiler/tests: Fix segfault
CC: "9.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
5575fdaccf
commit
d691ba4d94
3 changed files with 4 additions and 4 deletions
|
|
@ -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}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue