vkd3d-shader/spirv: Handle oPts in spirv_compiler_get_register_name().

This commit is contained in:
Henri Verbeet 2024-10-20 17:56:05 +02:00
parent fa6d03a4cb
commit 9690ffff61
Notes: Henri Verbeet 2024-10-28 18:13:16 +01:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1224

View File

@ -3192,6 +3192,14 @@ static bool spirv_compiler_get_register_name(char *buffer, unsigned int buffer_s
case VKD3DSPR_CONSTBUFFER: case VKD3DSPR_CONSTBUFFER:
snprintf(buffer, buffer_size, "cb%u_%u", reg->idx[0].offset, reg->idx[1].offset); snprintf(buffer, buffer_size, "cb%u_%u", reg->idx[0].offset, reg->idx[1].offset);
break; 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: case VKD3DSPR_INPUT:
snprintf(buffer, buffer_size, "v%u", idx); snprintf(buffer, buffer_size, "v%u", idx);
break; break;