Module: Mesa
Branch: vulkan
Commit: 45d8ce07a5838977bd875fdeb008ccecc6eb976e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=45d8ce07a5838977bd875fdeb008ccecc6eb976e

Author: Jordan Justen <[email protected]>
Date:   Sun Feb 28 10:44:08 2016 -0800

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

Signed-off-by: Jordan Justen <[email protected]>

---

 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 1173b4f..f6e3aed 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] =

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to