vk/compiler: Zero out the vs_prog_data struct when VS is disabled

Prevents uninitialized value errors
This commit is contained in:
Jason Ekstrand 2015-05-25 16:59:24 -07:00
parent 903bd4b056
commit 1b211feb6c

View file

@ -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;
}