summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-16 22:28:52 -0800
committerJason Ekstrand <[email protected]>2015-12-07 16:56:02 -0800
commitcd75ff5d1749b9a982546b54cd2655930d2a5402 (patch)
tree79216c2116b1b967d0d05f00dd0f99fab9494c0e /src/vulkan/anv_pipeline.c
parent9098e0f074a55dfe00bf1412b035e501fb70ad1d (diff)
anv/pipeline: Only apply a pipeline layout if we have one
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 948e675d091..821f5e33774 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -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).