From 9690ffff61cd7a3cd932532e7a8d7fea03510ec8 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 20 Oct 2024 17:56:05 +0200 Subject: [PATCH] vkd3d-shader/spirv: Handle oPts in spirv_compiler_get_register_name(). --- libs/vkd3d-shader/spirv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index ca7ca0ae..1bdbd1cc 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -3192,6 +3192,14 @@ static bool spirv_compiler_get_register_name(char *buffer, unsigned int buffer_s case VKD3DSPR_CONSTBUFFER: snprintf(buffer, buffer_size, "cb%u_%u", reg->idx[0].offset, reg->idx[1].offset); break; + case VKD3DSPR_RASTOUT: + if (idx == VSIR_RASTOUT_POINT_SIZE) + { + snprintf(buffer, buffer_size, "oPts"); + break; + } + FIXME("Unhandled rastout register %#x.\n", idx); + return false; case VKD3DSPR_INPUT: snprintf(buffer, buffer_size, "v%u", idx); break;