mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
nir/spirv_to_nir: Use a minimum of 1 for GS invocations
glslang is giving us 0, which causes the SIMD8 GS compile to hit an assert. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f46544dea1
commit
a3c5c339a8
1 changed files with 1 additions and 1 deletions
|
|
@ -3075,7 +3075,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
|
||||
case SpvExecutionModeInvocations:
|
||||
assert(b->shader->stage == MESA_SHADER_GEOMETRY);
|
||||
b->shader->info.gs.invocations = w[3];
|
||||
b->shader->info.gs.invocations = MAX2(1, w[3]);
|
||||
break;
|
||||
|
||||
case SpvExecutionModeDepthReplacing:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue