anv/pipeline: Set stage URB size to zero if it is unused
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 28 Feb 2016 18:44:08 +0000 (10:44 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 28 Feb 2016 18:49:39 +0000 (10:49 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_pipeline.c

index 1173b4f0cba209109d5d522397928dcc7e851553..f6e3aedda4013468adbb68ef2ea57fd0a0127f3e 100644 (file)
@@ -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] =