tests: Strip reflection data from dxbc-tpf-hex shaders.

This commit is contained in:
Henri Verbeet
2025-07-31 18:40:15 +02:00
parent 243207701b
commit 721859005f
Notes: Henri Verbeet 2025-08-04 15:08:50 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1667
4 changed files with 117 additions and 153 deletions

View File

@@ -184,94 +184,77 @@ tessellation-shader
% return input[i];
% }
% hs_5_0
% hs_decls
% dcl_input_control_point_count 3
% dcl_output_control_point_count 3
% dcl_tessellator_domain domain_tri
% dcl_tessellator_partitioning partitioning_integer
% dcl_tessellator_output_primitive output_triangle_cw
% dcl_globalFlags refactoringAllowed
% hs_fork_phase
% dcl_hs_fork_phase_instance_count 3
% dcl_input vForkInstanceID
% dcl_output_siv o0.x, finalTriUeq0EdgeTessFactor
% dcl_output_siv o1.x, finalTriVeq0EdgeTessFactor
% dcl_output_siv o2.x, finalTriWeq0EdgeTessFactor
% dcl_temps 1
% dcl_indexrange o0.x 3
% mov r0.x, vForkInstanceID.x
% mov o[r0.x + 0].x, l(1.000000)
% ret
% hs_fork_phase
% dcl_output_siv o3.x, finalTriInsideTessFactor
% mov o3.x, l(1.000000)
% ret
% hs_fork_phase
% dcl_hs_fork_phase_instance_count 3
% dcl_input vForkInstanceID
% dcl_output o0.y
% dcl_output o1.y
% dcl_output o2.y
% dcl_temps 1
% dcl_indexrange o0.y 3
% mov r0.x, vForkInstanceID.x
% mov o[r0.x + 0].y, l(0)
% ret
% hs_fork_phase
% dcl_hs_fork_phase_instance_count 2
% dcl_input vForkInstanceID
% dcl_output o0.z
% dcl_output o2.z
% dcl_temps 1
% dcl_indexrange o0.z 3
% ult r0.x, vForkInstanceID.x, l(1)
% movc r0.x, r0.x, l(0), l(2)
% mov o[r0.x + 0].z, l(0)
% ret
43425844 d3d22934 2b8d40fb cc30d02f 0b5acd69 00000001 0000053c 00000006
00000038 000000b0 0000013c 000001c8 000002a8 000004a0 46454452 00000070
00000000 00000000 00000000 0000003c 48530500 00000100 0000003c 31314452
0000003c 00000018 00000020 00000028 00000024 0000000c 00000000 7263694d
666f736f 52282074 4c482029 53204c53 65646168 6f432072 6c69706d 31207265
2e302e30 31303031 36312e31 00343833 4e475349 00000084 00000004 00000008
00000068 00000000 00000001 00000003 00000000 00000f0f 00000074 00000000
00000000 00000003 00000001 00000101 00000078 00000000 00000000 00000003
00000001 00000202 0000007e 00000000 00000000 00000003 00000001 00000404
505f5653 7469736f 006e6f69 00444552 45455247 4c42004e ab004555 4e47534f
00000084 00000004 00000008 00000068 00000000 00000001 00000003 00000000
0000000f 00000074 00000000 00000000 00000003 00000001 00000e01 00000078
00000000 00000000 00000003 00000001 00000d02 0000007e 00000000 00000000
00000003 00000001 00000b04 505f5653 7469736f 006e6f69 00444552 45455247
4c42004e ab004555 47534350 000000d8 00000007 00000008 000000b0 00000000
0000000d 00000003 00000000 00000e01 000000be 00000000 00000000 00000003
00000000 00000906 000000b0 00000001 0000000d 00000003 00000001 00000e01
000000c0 00000000 00000000 00000003 00000001 00000d02 000000b0 00000002
0000000d 00000003 00000002 00000e01 000000c2 00000000 00000000 00000003
00000002 00000906 000000c4 00000000 0000000e 00000003 00000003 00000e01
545f5653 46737365 6f746361 00580072 005a0059 495f5653 6469736e 73655465
63614673 00726f74 58454853 000001f0 00030050 0000007c 01000071 01001893
01001894 01001095 01000896 01001897 0100086a 01000073 02000099 00000003
0200005f 00017000 04000067 00102012 00000000 00000011 04000067 00102012
00000001 00000012 04000067 00102012 00000002 00000013 02000068 00000001
0400005b 00102012 00000000 00000003 04000036 00100012 00000000 0001700a
06000036 00902012 0010000a 00000000 00004001 3f800000 0100003e 01000073
04000067 00102012 00000003 00000014 05000036 00102012 00000003 00004001
3f800000 0100003e 01000073 02000099 00000003 0200005f 00017000 03000065
00102022 00000000 03000065 00102022 00000001 03000065 00102022 00000002
02000068 00000001 0400005b 00102022 00000000 00000003 04000036 00100012
00000000 0001700a 06000036 00902022 0010000a 00000000 00004001 00000000
0100003e 01000073 02000099 00000002 0200005f 00017000 03000065 00102042
00000000 03000065 00102042 00000002 02000068 00000001 0400005b 00102042
00000000 00000003 0600004f 00100012 00000000 0001700a 00004001 00000001
09000037 00100012 00000000 0010000a 00000000 00004001 00000000 00004001
00000002 06000036 00902042 0010000a 00000000 00004001 00000000 0100003e
54415453 00000094 0000000c 00000001 00000000 00000004 00000000 00000000
00000001 00000004 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000006 00000001 00000000
00000000 0000000a 00000000 00000000 00000000 00000000 00000000 00000000
00000003 00000003 00000001 00000002 00000000 00000000 00000000
43425844 d70b6259 818a3418 8aff8947 e7f3a36d 00000001 00000420 % DXBC header
00000004 00000030 000000bc 00000148 00000228 %
4e475349 00000084 00000004 00000008 % .input
00000068 00000000 00000001 00000003 00000000 00000f0f % .param SV_Position.xyzw, v0.xyzw, float, POS
00000074 00000000 00000000 00000003 00000001 00000101 % .param RED.x, v1.x, float
00000078 00000000 00000000 00000003 00000001 00000202 % .param GREEN.y, v1.y, float
0000007e 00000000 00000000 00000003 00000001 00000404 % .param BLUE.z, v1.z, float
505f5653 7469736f 006e6f69 00444552 45455247 4c42004e ab004555 %
4e47534f 00000084 00000004 00000008 % .output
00000068 00000000 00000001 00000003 00000000 0000000f % .param SV_Position.xyzw, o0.xyzw, float, POS
00000074 00000000 00000000 00000003 00000001 00000e01 % .param RED.x, o1.x, float
00000078 00000000 00000000 00000003 00000001 00000d02 % .param GREEN.y, o1.y, float
0000007e 00000000 00000000 00000003 00000001 00000b04 % .param BLUE.z, o1.z, float
505f5653 7469736f 006e6f69 00444552 45455247 4c42004e ab004555 %
47534350 000000d8 00000007 00000008 % .patch_constant
000000b0 00000000 0000000d 00000003 00000000 00000e01 % .param SV_TessFactor.x, o0.x, float, TRIEDGE
000000be 00000000 00000000 00000003 00000000 00000906 % .param X.yz, o0.yz, float
000000b0 00000001 0000000d 00000003 00000001 00000e01 % .param SV_TessFactor1.x, o1.x, float, TRIEDGE
000000c0 00000000 00000000 00000003 00000001 00000d02 % .param Y.y, o1.y, float
000000b0 00000002 0000000d 00000003 00000002 00000e01 % .param SV_TessFactor2.x, o2.x, float, TRIEDGE
000000c2 00000000 00000000 00000003 00000002 00000906 % .param Z.yz, o2.yz, float
000000c4 00000000 0000000e 00000003 00000003 00000e01 % .param SV_InsideTessFactor.x, o3.x,
% float, TRIINT
545f5653 46737365 6f746361 00580072 005a0059 495f5653 6469736e %
73655465 63614673 00726f74 %
58454853 000001f0 00030050 0000007c % .text hs_5_0
01000071 % hs_decls
01001893 % dcl_input_control_point_count 3
01001894 % dcl_output_control_point_count 3
01001095 % dcl_tessellator_domain domain_tri
01000896 % dcl_tessellator_partitioning partitioning_integer
01001897 % dcl_tessellator_output_primitive output_triangle_cw
0100086a % dcl_globalFlags refactoringAllowed
01000073 % hs_fork_phase
02000099 00000003 % dcl_hs_fork_phase_instance_count 3
0200005f 00017000 % dcl_input vForkInstanceId
04000067 00102012 00000000 00000011 % dcl_output_siv o0.x, finalTriUeq0EdgeTessFactor
04000067 00102012 00000001 00000012 % dcl_output_siv o1.x, finalTriVeq0EdgeTessFactor
04000067 00102012 00000002 00000013 % dcl_output_siv o2.x, finalTriWeq0EdgeTessFactor
02000068 00000001 % dcl_temps 1
0400005b 00102012 00000000 00000003 % dcl_index_range o0.x 3
04000036 00100012 00000000 0001700a % mov r0.x, vForkInstanceId.x
06000036 00902012 0010000a 00000000 00004001 3f800000 % mov o[r0.x + 0].x, l(1.00000000e+00)
0100003e % ret
01000073 % hs_fork_phase
04000067 00102012 00000003 00000014 % dcl_output_siv o3.x, finalTriInsideTessFactor
05000036 00102012 00000003 00004001 3f800000 % mov o3.x, l(1.00000000e+00)
0100003e % ret
01000073 % hs_fork_phase
02000099 00000003 % dcl_hs_fork_phase_instance_count 3
0200005f 00017000 % dcl_input vForkInstanceId
03000065 00102022 00000000 % dcl_output o0.y
03000065 00102022 00000001 % dcl_output o1.y
03000065 00102022 00000002 % dcl_output o2.y
02000068 00000001 % dcl_temps 1
0400005b 00102022 00000000 00000003 % dcl_index_range o0.y 3
04000036 00100012 00000000 0001700a % mov r0.x, vForkInstanceId.x
06000036 00902022 0010000a 00000000 00004001 00000000 % mov o[r0.x + 0].y, l(0)
0100003e % ret
01000073 % hs_fork_phase
02000099 00000002 % dcl_hs_fork_phase_instance_count 2
0200005f 00017000 % dcl_input vForkInstanceId
03000065 00102042 00000000 % dcl_output o0.z
03000065 00102042 00000002 % dcl_output o2.z
02000068 00000001 % dcl_temps 1
0400005b 00102042 00000000 00000003 % dcl_index_range o0.z 3
0600004f 00100012 00000000 0001700a 00004001 00000001 % ult r0.x, vForkInstanceId.x, l(1)
09000037 00100012 00000000 0010000a 00000000 % movc r0.x, r0.x,
00004001 00000000 00004001 00000002 % l(0), l(2)
06000036 00902042 0010000a 00000000 00004001 00000000 % mov o[r0.x + 0].z, l(0)
0100003e % ret
[domain shader]
struct data