mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/spirv: Use spirv_compiler_error() to report unhandled resinfo flags.
This commit is contained in:
Notes:
Henri Verbeet
2025-07-23 17:31:10 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1641
@@ -9932,6 +9932,10 @@ static void spirv_compiler_emit_resinfo(struct spirv_compiler *compiler,
|
||||
struct vkd3d_shader_image image;
|
||||
bool supports_mipmaps;
|
||||
|
||||
if (instruction->flags & ~VKD3DSI_RESINFO_UINT)
|
||||
spirv_compiler_error(compiler, VKD3D_SHADER_ERROR_SPV_NOT_IMPLEMENTED,
|
||||
"Unhandled resinfo flags %#x.\n", instruction->flags & ~VKD3DSI_RESINFO_UINT);
|
||||
|
||||
vkd3d_spirv_enable_capability(builder, SpvCapabilityImageQuery);
|
||||
|
||||
spirv_compiler_prepare_image(compiler, &image, &src[1].reg, NULL, VKD3D_IMAGE_FLAG_NONE);
|
||||
@@ -9976,8 +9980,6 @@ static void spirv_compiler_emit_resinfo(struct spirv_compiler *compiler,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (instruction->flags)
|
||||
FIXME("Unhandled flags %#x.\n", instruction->flags);
|
||||
val_id = vkd3d_spirv_build_op_convert_utof(builder, type_id, val_id);
|
||||
}
|
||||
val_id = spirv_compiler_emit_swizzle(compiler, val_id, VKD3DSP_WRITEMASK_ALL,
|
||||
|
Reference in New Issue
Block a user