mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
anv/pipeline: Only apply a pipeline layout if we have one
This commit is contained in:
parent
9098e0f074
commit
cd75ff5d17
1 changed files with 2 additions and 1 deletions
|
|
@ -338,7 +338,8 @@ anv_pipeline_compile(struct anv_pipeline *pipeline,
|
|||
anv_nir_apply_dynamic_offsets(pipeline, nir, prog_data);
|
||||
|
||||
/* Apply the actual pipeline layout to UBOs, SSBOs, and textures */
|
||||
anv_nir_apply_pipeline_layout(nir, pipeline->layout);
|
||||
if (pipeline->layout)
|
||||
anv_nir_apply_pipeline_layout(nir, pipeline->layout);
|
||||
|
||||
/* All binding table offsets provided by apply_pipeline_layout() are
|
||||
* relative to the start of the bindint table (plus MAX_RTS for VS).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue