mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
ilo: fix a -Wmaybe-uninitialized warning
ilo_shader.c: In function ‘ilo_shader_select_kernel_sbe’: ilo_shader.c:1140:27: warning: ‘src_skip’ may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
parent
a1f84453a2
commit
aa3ec8bc46
1 changed files with 1 additions and 0 deletions
|
|
@ -1089,6 +1089,7 @@ ilo_shader_select_kernel_sbe(struct ilo_shader_state *shader,
|
|||
src_semantics = source->shader->out.semantic_names;
|
||||
src_indices = source->shader->out.semantic_indices;
|
||||
src_len = source->shader->out.count;
|
||||
src_skip = 0;
|
||||
|
||||
assert(src_len >= 2 &&
|
||||
src_semantics[0] == TGSI_SEMANTIC_PSIZE &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue