mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Consistently use VSIR_DATA_U32 for sample_info_uint destination operands.
The HLSL compiler already did this; the TPF and DXIL parsers did not. Previously spirv_compiler_emit_sample_info() was unable to correctly handle VSIR_DATA_U32 destinations; the new version is arguably simpler as well.
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
@@ -6009,7 +6009,7 @@ static void sm6_parser_emit_dx_get_sample_count(struct sm6_parser *sm6, enum dx_
|
||||
src_param_init(src_param);
|
||||
|
||||
instruction_dst_param_init_ssa_scalar(ins, sm6);
|
||||
ins->dst->reg.data_type = VSIR_DATA_F32;
|
||||
ins->dst->reg.data_type = VSIR_DATA_U32;
|
||||
}
|
||||
|
||||
static void sm6_parser_emit_dx_get_sample_pos(struct sm6_parser *sm6, enum dx_intrinsic_opcode op,
|
||||
|
Reference in New Issue
Block a user