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 <>
parent 7223590c
......@@ -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];
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]);
case SpvExecutionModeLocalSizeHint:
case SpvExecutionModeLocalSizeHintId:
break; /* Nothing to do with this */
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