anv/pipeline: Avoid a division by zero
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user