mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 07:00:11 +01:00
tests/amdgpu: fix compile error with gcc14
../../drm/tests/amdgpu/shader_code.h:114:9: error: initialization of
‘const uint32_t *’ {aka ‘const unsigned int *’} from incompatible
pointer type ‘const uint32_t (*)[10][6]’ {aka ‘const unsigned int
(*)[10][6]’} [-Wincompatible-pointer-types]
114 | ps_##_ps##_shader_patchinfo_code_gfx##_n, \
| ^~~
../../drm/tests/amdgpu/shader_code.h:119:10: note: in expansion of macro
‘SHADER_PS_INFO’
119 | {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)},
| ^~~~~~~~~~~~~~
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
cee441f32d
commit
37265ab0ad
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ static const struct shader_test_cs_shader shader_test_cs[AMDGPU_TEST_GFX_MAX][2]
|
|||
#define SHADER_PS_INFO(_ps, _n) \
|
||||
{ps_##_ps##_shader_gfx##_n, sizeof(ps_##_ps##_shader_gfx##_n), \
|
||||
ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \
|
||||
ps_##_ps##_shader_patchinfo_code_gfx##_n, \
|
||||
&(ps_##_ps##_shader_patchinfo_code_gfx##_n)[0][0][0], \
|
||||
ps_##_ps##_shader_patchinfo_offset_gfx##_n, \
|
||||
ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \
|
||||
ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue