mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/msl: Implement support for VKD3DSPR_OUTPUT registers.
This commit is contained in:
parent
48a2207511
commit
ccc48291b3
Notes:
Henri Verbeet
2024-10-10 20:08:53 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1164
@ -131,6 +131,25 @@ static void msl_print_register_name(struct vkd3d_string_buffer *buffer,
|
|||||||
msl_print_register_datatype(buffer, gen, reg->data_type);
|
msl_print_register_datatype(buffer, gen, reg->data_type);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case VKD3DSPR_OUTPUT:
|
||||||
|
if (reg->idx_count != 1)
|
||||||
|
{
|
||||||
|
msl_compiler_error(gen, VKD3D_SHADER_ERROR_MSL_INTERNAL,
|
||||||
|
"Internal compiler error: Unhandled output register index count %u.", reg->idx_count);
|
||||||
|
vkd3d_string_buffer_printf(buffer, "<unhandled register %#x>", reg->type);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (reg->idx[0].rel_addr)
|
||||||
|
{
|
||||||
|
msl_compiler_error(gen, VKD3D_SHADER_ERROR_MSL_INTERNAL,
|
||||||
|
"Internal compiler error: Unhandled output register indirect addressing.");
|
||||||
|
vkd3d_string_buffer_printf(buffer, "<unhandled register %#x>", reg->type);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
vkd3d_string_buffer_printf(buffer, "o[%u]", reg->idx[0].offset);
|
||||||
|
msl_print_register_datatype(buffer, gen, reg->data_type);
|
||||||
|
break;
|
||||||
|
|
||||||
case VKD3DSPR_CONSTBUFFER:
|
case VKD3DSPR_CONSTBUFFER:
|
||||||
if (reg->idx_count != 3)
|
if (reg->idx_count != 3)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user