mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
vk/compiler: Zero out the vs_prog_data struct when VS is disabled
Prevents uninitialized value errors
This commit is contained in:
parent
903bd4b056
commit
1b211feb6c
1 changed files with 1 additions and 0 deletions
|
|
@ -937,6 +937,7 @@ anv_compiler_run(struct anv_compiler *compiler, struct anv_pipeline *pipeline)
|
|||
pipeline->prog_data[VK_SHADER_STAGE_VERTEX] = &pipeline->vs_prog_data.base.base;
|
||||
pipeline->active_stages |= VK_SHADER_STAGE_VERTEX_BIT;;
|
||||
} else {
|
||||
memset(&pipeline->vs_prog_data, 0, sizeof(pipeline->vs_prog_data));
|
||||
pipeline->vs_simd8 = NO_KERNEL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue