Commit ab940b0d authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Jason Ekstrand
Browse files

spirv: Support LocalSizeId and LocalSizeHintId execution modes


Reviewed-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
parent 7223590c
...@@ -3826,7 +3826,15 @@ vtn_handle_execution_mode(struct vtn_builder *b, struct vtn_value *entry_point, ...@@ -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[1] = mode->literals[1];
b->shader->info.cs.local_size[2] = mode->literals[2]; b->shader->info.cs.local_size[2] = mode->literals[2];
break; 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 SpvExecutionModeLocalSizeHint:
case SpvExecutionModeLocalSizeHintId:
break; /* Nothing to do with this */ break; /* Nothing to do with this */
case SpvExecutionModeOutputVertices: case SpvExecutionModeOutputVertices:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment