projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51b6182
)
anv/pipeline: Avoid a division by zero
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 29 Feb 2016 22:13:07 +0000
(14:13 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 29 Feb 2016 22:36:24 +0000
(14:36 -0800)
src/intel/vulkan/anv_pipeline.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_pipeline.c
b/src/intel/vulkan/anv_pipeline.c
index df265842ccc3e66f827b7c96626dd45d7a4de98e..cbd3a21abd75cc307f963d32152590e1fa44f294 100644
(file)
--- a/
src/intel/vulkan/anv_pipeline.c
+++ b/
src/intel/vulkan/anv_pipeline.c
@@
-894,7
+894,7
@@
gen7_compute_urb_partition(struct anv_pipeline *pipeline)
const unsigned stages =
_mesa_bitcount(pipeline->active_stages & VK_SHADER_STAGE_ALL_GRAPHICS);
- const unsigned size_per_stage =
push_constant_kb / stages
;
+ const unsigned size_per_stage =
stages ? (push_constant_kb / stages) : 0
;
unsigned used_kb = 0;
for (int i = MESA_SHADER_VERTEX; i < MESA_SHADER_FRAGMENT; i++) {