mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
anv/apply_pipeline_layout: Multiply uniform sizes by 4
This is because uniforms are now in terms of bytes everywhere.
This commit is contained in:
parent
6df7963531
commit
bd0e25d41e
1 changed files with 2 additions and 2 deletions
|
|
@ -284,7 +284,7 @@ anv_nir_apply_pipeline_layout(nir_shader *shader,
|
|||
var->data.binding, &state);
|
||||
|
||||
var->data.driver_location = shader->num_uniforms +
|
||||
image_index * BRW_IMAGE_PARAM_SIZE;
|
||||
image_index * BRW_IMAGE_PARAM_SIZE * 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -310,7 +310,7 @@ anv_nir_apply_pipeline_layout(nir_shader *shader,
|
|||
}
|
||||
|
||||
shader->num_uniforms += layout->stage[shader->stage].image_count *
|
||||
BRW_IMAGE_PARAM_SIZE;
|
||||
BRW_IMAGE_PARAM_SIZE * 4;
|
||||
}
|
||||
|
||||
return state.progress;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue