mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
spirv: Support LocalSizeId and LocalSizeHintId execution modes
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
7223590c42
commit
ab940b0d97
1 changed files with 8 additions and 0 deletions
|
|
@ -3826,7 +3826,15 @@ vtn_handle_execution_mode(struct vtn_builder *b, struct vtn_value *entry_point,
|
|||
b->shader->info.cs.local_size[1] = mode->literals[1];
|
||||
b->shader->info.cs.local_size[2] = mode->literals[2];
|
||||
break;
|
||||
|
||||
case SpvExecutionModeLocalSizeId:
|
||||
b->shader->info.cs.local_size[0] = vtn_constant_uint(b, mode->literals[0]);
|
||||
b->shader->info.cs.local_size[1] = vtn_constant_uint(b, mode->literals[1]);
|
||||
b->shader->info.cs.local_size[2] = vtn_constant_uint(b, mode->literals[2]);
|
||||
break;
|
||||
|
||||
case SpvExecutionModeLocalSizeHint:
|
||||
case SpvExecutionModeLocalSizeHintId:
|
||||
break; /* Nothing to do with this */
|
||||
|
||||
case SpvExecutionModeOutputVertices:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue