mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
spirv: fixup signature
This avoids a warning on some compiler, complaining about implicitly
casting the function-pointer.
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: d482a8f "spirv: Update the OpenCL.std.h header"
Acked-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
68c24b09c2
commit
75097114d9
2 changed files with 3 additions and 3 deletions
|
|
@ -245,10 +245,10 @@ handle_printf(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
|
|||
}
|
||||
|
||||
bool
|
||||
vtn_handle_opencl_instruction(struct vtn_builder *b, uint32_t ext_opcode,
|
||||
vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
||||
const uint32_t *w, unsigned count)
|
||||
{
|
||||
switch (ext_opcode) {
|
||||
switch ((enum OpenCLstd_Entrypoints)ext_opcode) {
|
||||
case OpenCLstd_Fabs:
|
||||
case OpenCLstd_SAbs:
|
||||
case OpenCLstd_UAbs:
|
||||
|
|
|
|||
|
|
@ -845,7 +845,7 @@ void vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
|
|||
bool vtn_handle_glsl450_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
||||
const uint32_t *words, unsigned count);
|
||||
|
||||
bool vtn_handle_opencl_instruction(struct vtn_builder *b, uint32_t ext_opcode,
|
||||
bool vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
||||
const uint32_t *words, unsigned count);
|
||||
|
||||
struct vtn_builder* vtn_create_builder(const uint32_t *words, size_t word_count,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue