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

@@ -30,24 +30,30 @@ todo(msl & sm>=6) draw triangle list 6
probe (160, 240) f32(2.0, 0.0, 0.0, 0.0)
probe (480, 240) f32(2.0, 1.0, 0.0, 0.0)
% As above, but compiled with native d3dcompiler_43.
% Versions 43 and earlier will pack together "a" with "face".
[require]
shader model >= 4.0
shader model < 4.1
[pixel shader dxbc-tpf-hex]
43425844 5c2e1427 858794db 4ee8c03b c5723497 00000001 00000140 00000003
0000002c 00000080 000000b4 4e475349 0000004c 00000002 00000008 00000038
00000000 00000000 00000001 00000000 00000101 0000003a 00000000 00000009
00000001 00000000 00000202 76730041 6673695f 746e6f72 65636166 ababab00
4e47534f 0000002c 00000001 00000008 00000020 00000000 00000000 00000003
00000000 0000000f 745f7673 65677261 abab0074 52444853 00000084 00000040
00000021 03000862 00101012 00000000 04000863 00101022 00000000 00000009
03000065 001020f2 00000000 05000056 00102012 00000000 0010100a 00000000
07000001 00102022 00000000 0010101a 00000000 00004001 3f800000 08000036
001020c2 00000000 00004002 00000000 00000000 00000000 00000000 0100003e
% As above, but compiled with native d3dcompiler_43.
% Versions 43 and earlier will pack together "a" with "face".
43425844 5c2e1427 858794db 4ee8c03b c5723497 00000001 00000140 % DXBC header
00000003 0000002c 00000080 000000b4 %
4e475349 0000004c 00000002 00000008 % .input
00000038 00000000 00000000 00000001 00000000 00000101 % .param A.x, v0.x, uint
0000003a 00000000 00000009 00000001 00000000 00000202 % .param sv_isfrontface.y, v0.y, uint, FFACE
76730041 6673695f 746e6f72 65636166 ababab00 %
4e47534f 0000002c 00000001 00000008 % .output
00000020 00000000 00000000 00000003 00000000 0000000f % .param sv_target.xyzw, o0.xyzw, float, TARGET
745f7673 65677261 abab0074 %
52444853 00000084 00000040 00000021 % .text ps_4_0
03000862 00101012 00000000 % dcl_input_ps constant v0.x
04000863 00101022 00000000 00000009 % dcl_input_ps_sgv v0.y, is_front_face
03000065 001020f2 00000000 % dcl_output o0.xyzw
05000056 00102012 00000000 0010100a 00000000 % utof o0.x, v0.x
07000001 00102022 00000000 0010101a 00000000 00004001 3f800000 % and o0.y, v0.y, l(0x3f800000)
08000036 001020c2 00000000 00004002 00000000 00000000 00000000 00000000 % mov o0.zw, l(0, 0, 0, 0)
0100003e % ret
[test]
clear rtv 0 0.0 0.0 0.0 0.0