mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
vk/compiler: Zero the prog data
We use prog_data[stage] != NULL to determine whether or not we need to clean up that stage. Make sure it default to NULL.
This commit is contained in:
parent
1f7dcf9d75
commit
cd197181f2
1 changed files with 5 additions and 0 deletions
|
|
@ -833,6 +833,11 @@ anv_compiler_run(struct anv_compiler *compiler, struct anv_pipeline *pipeline)
|
|||
struct brw_context *brw = compiler->brw;
|
||||
struct anv_device *device = pipeline->device;
|
||||
|
||||
/* When we free the pipeline, we detect stages based on the NULL status
|
||||
* of various prog_data pointers. Make them NULL by default.
|
||||
*/
|
||||
memset(pipeline->prog_data, 0, sizeof(pipeline->prog_data));
|
||||
|
||||
brw->use_rep_send = pipeline->use_repclear;
|
||||
brw->no_simd8 = pipeline->use_repclear;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue