anv/pipeline: Set stage URB size to zero if it is unused

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Jordan Justen 2016-02-28 10:44:08 -08:00
parent 46b7c242da
commit 45d8ce07a5
1 changed files with 1 additions and 1 deletions

View 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] =