mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
nir/spirv: Set a default number of invocations for geometry shaders
The SPIR-V spec says geometry shaders are supposed to have one invocation by default. The execution mode is only required if there are multiple invocations.
This commit is contained in:
parent
f56f538ce4
commit
cf2257069c
1 changed files with 3 additions and 0 deletions
|
|
@ -2676,6 +2676,9 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
|
||||||
|
|
||||||
b->shader = nir_shader_create(NULL, stage, options);
|
b->shader = nir_shader_create(NULL, stage, options);
|
||||||
|
|
||||||
|
/* Set shader info defaults */
|
||||||
|
b->shader->info.gs.invocations = 1;
|
||||||
|
|
||||||
/* Parse execution modes */
|
/* Parse execution modes */
|
||||||
vtn_foreach_execution_mode(b, b->entry_point,
|
vtn_foreach_execution_mode(b, b->entry_point,
|
||||||
vtn_handle_execution_mode, NULL);
|
vtn_handle_execution_mode, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue