mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/ir: Rename the "immconst_float" field of struct vkd3d_shader_register to "immconst_f32".
This commit is contained in:
parent
e33d3b3954
commit
05a542ba00
Notes:
Alexandre Julliard
2024-01-03 23:08:59 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/534
@ -1109,7 +1109,7 @@ static void shader_dump_register(struct vkd3d_d3d_asm_compiler *compiler, const
|
||||
switch (reg->data_type)
|
||||
{
|
||||
case VKD3D_DATA_FLOAT:
|
||||
shader_print_float_literal(compiler, "", reg->u.immconst_float[0], "");
|
||||
shader_print_float_literal(compiler, "", reg->u.immconst_f32[0], "");
|
||||
break;
|
||||
case VKD3D_DATA_INT:
|
||||
shader_print_int_literal(compiler, "", reg->u.immconst_u32[0], "");
|
||||
@ -1129,10 +1129,10 @@ static void shader_dump_register(struct vkd3d_d3d_asm_compiler *compiler, const
|
||||
switch (reg->data_type)
|
||||
{
|
||||
case VKD3D_DATA_FLOAT:
|
||||
shader_print_float_literal(compiler, "", reg->u.immconst_float[0], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_float[1], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_float[2], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_float[3], "");
|
||||
shader_print_float_literal(compiler, "", reg->u.immconst_f32[0], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_f32[1], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_f32[2], "");
|
||||
shader_print_float_literal(compiler, ", ", reg->u.immconst_f32[3], "");
|
||||
break;
|
||||
case VKD3D_DATA_INT:
|
||||
shader_print_int_literal(compiler, "", reg->u.immconst_u32[0], "");
|
||||
@ -1882,10 +1882,10 @@ static void shader_dump_instruction(struct vkd3d_d3d_asm_compiler *compiler,
|
||||
vkd3d_string_buffer_printf(buffer, " %sc%u%s", compiler->colours.reg,
|
||||
shader_get_float_offset(ins->dst[0].reg.type, ins->dst[0].reg.idx[0].offset),
|
||||
compiler->colours.reset);
|
||||
shader_print_float_literal(compiler, " = ", ins->src[0].reg.u.immconst_float[0], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_float[1], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_float[2], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_float[3], "");
|
||||
shader_print_float_literal(compiler, " = ", ins->src[0].reg.u.immconst_f32[0], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_f32[1], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_f32[2], "");
|
||||
shader_print_float_literal(compiler, ", ", ins->src[0].reg.u.immconst_f32[3], "");
|
||||
break;
|
||||
|
||||
case VKD3DSIH_DEFI:
|
||||
|
@ -2596,7 +2596,7 @@ static enum vkd3d_result sm6_parser_constants_init(struct sm6_parser *sm6, const
|
||||
if (type->u.width == 16)
|
||||
FIXME("Half float type is not supported yet.\n");
|
||||
else if (type->u.width == 32)
|
||||
dst->u.reg.u.immconst_float[0] = bitcast_uint64_to_float(record->operands[0]);
|
||||
dst->u.reg.u.immconst_f32[0] = bitcast_uint64_to_float(record->operands[0]);
|
||||
else if (type->u.width == 64)
|
||||
dst->u.reg.u.immconst_double[0] = bitcast_uint64_to_double(record->operands[0]);
|
||||
else
|
||||
|
@ -842,7 +842,7 @@ struct vkd3d_shader_register
|
||||
union
|
||||
{
|
||||
uint32_t immconst_u32[VKD3D_VEC4_SIZE];
|
||||
float immconst_float[VKD3D_VEC4_SIZE];
|
||||
float immconst_f32[VKD3D_VEC4_SIZE];
|
||||
uint64_t immconst_uint64[VKD3D_DVEC2_SIZE];
|
||||
double immconst_double[VKD3D_DVEC2_SIZE];
|
||||
unsigned fp_body_idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user