mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
spirv: add default handler for new enums
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
4fd54d611f
commit
05e2d99bf2
2 changed files with 15 additions and 0 deletions
|
|
@ -561,6 +561,9 @@ struct_member_decoration_cb(struct vtn_builder *b,
|
|||
vtn_warn("Decoration only allowed for CL-style kernels: %s",
|
||||
spirv_decoration_to_string(dec->decoration));
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled decoration");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -638,6 +641,9 @@ type_decoration_cb(struct vtn_builder *b,
|
|||
vtn_warn("Decoration only allowed for CL-style kernels: %s",
|
||||
spirv_decoration_to_string(dec->decoration));
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled decoration");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2653,6 +2659,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
case SpvCapabilityTessellationPointSize:
|
||||
spv_check_supported(tessellation, cap);
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled capability");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -2842,6 +2851,9 @@ vtn_handle_execution_mode(struct vtn_builder *b, struct vtn_value *entry_point,
|
|||
case SpvExecutionModeVecTypeHint:
|
||||
case SpvExecutionModeContractionOff:
|
||||
break; /* OpenCL */
|
||||
|
||||
default:
|
||||
unreachable("Unhandled execution mode");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1139,6 +1139,9 @@ apply_var_decoration(struct vtn_builder *b, nir_variable *nir_var,
|
|||
vtn_warn("Decoration only allowed for CL-style kernels: %s",
|
||||
spirv_decoration_to_string(dec->decoration));
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled decoration");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue