From 45d8ce07a5838977bd875fdeb008ccecc6eb976e Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sun, 28 Feb 2016 10:44:08 -0800 Subject: [PATCH] anv/pipeline: Set stage URB size to zero if it is unused Signed-off-by: Jordan Justen --- src/intel/vulkan/anv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 1173b4f0cba..f6e3aedda40 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -897,7 +897,7 @@ gen7_compute_urb_partition(struct anv_pipeline *pipeline) for (int i = MESA_SHADER_VERTEX; i < MESA_SHADER_FRAGMENT; i++) { pipeline->urb.push_size[i] = - (pipeline->active_stages & (1 << i)) ? size_per_stage : 1; + (pipeline->active_stages & (1 << i)) ? size_per_stage : 0; } pipeline->urb.push_size[MESA_SHADER_FRAGMENT] = -- 2.30.2