From: Jordan Justen Date: Sun, 28 Feb 2016 18:44:08 +0000 (-0800) Subject: anv/pipeline: Set stage URB size to zero if it is unused X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45d8ce07a5838977bd875fdeb008ccecc6eb976e;p=mesa.git anv/pipeline: Set stage URB size to zero if it is unused Signed-off-by: Jordan Justen --- 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] =