hlsl: More function-related tests.
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
- tests/return.shader_test 0 → 100644
49 uniform float f; 50 51 float4 main() : sv_target 52 { 53 if (f < 0.5) 54 return float4(0.1, 0.2, 0.3, 0.4); 55 return float4(0.5, 0.6, 0.7, 0.8); 56 } 57 58 [test] 59 uniform 0 float 0.2 60 draw quad 61 todo probe all rgba (0.1, 0.2, 0.3, 0.4) 62 uniform 0 float 0.8 63 draw quad 64 probe all rgba (0.5, 0.6, 0.7, 0.8) changed this line in version 3 of the diff
- tests/entry-point-overload.shader_test 0 → 100644
8 9 [pixel shader] 10 11 float4 main() : sv_target 12 { 13 return 0.1; 14 } 15 16 float4 main(float tex : texcoord) : sv_target 17 { 18 return tex; 19 } 20 21 [test] 22 draw quad 23 todo probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2) Indeed. Nice. Some further testing implies that 43 always picks the first function, and 47 always picks the last, i.e. the arguments don't matter.
(Side note, that version number seems to come from the d3dcompiler dll, not fxc. At least, I get the same version number in native disassembly.)
46 behaves like 47.
I think this is the first difference in behaviour we've found that we're actually going to want to put effort into emulating. We'll have to figure out a way to deal with it in the tests...
changed this line in version 3 of the diff
added 32 commits
-
69f2d21c...653cc02f - 29 commits from branch
wine:master
- 501fc445 - tests: Add some tests for early return from user-defined functions.
- 300b651b - tests: Add more tests for early return from the entry point.
- bd55718f - tests: Test entry point semantics on function declarations.
Toggle commit list-
69f2d21c...653cc02f - 29 commits from branch
added 16 commits
-
bd55718f...f9e7cb63 - 13 commits from branch
wine:master
- c52a3c63 - tests: Add some tests for early return from user-defined functions.
- e6d053b9 - tests: Add more tests for early return from the entry point.
- b282db43 - tests: Test entry point semantics on function declarations.
Toggle commit list-
bd55718f...f9e7cb63 - 13 commits from branch
added 4 commits
- 16cef375 - vkd3d-shader/hlsl: Emit a hlsl_fixme() for HLSL_IR_CALL instructions.
- 6c311517 - tests: Add some tests for early return from user-defined functions.
- 593b4f9e - tests: Add more tests for early return from the entry point.
- 6a71479f - tests: Test entry point semantics on function declarations.
Toggle commit listadded 4 commits
- aa3badbd - vkd3d-shader/hlsl: Emit a hlsl_fixme() for HLSL_IR_CALL instructions.
- 7460d7ad - tests: Add some tests for early return from user-defined functions.
- 4954c363 - tests: Add more tests for early return from the entry point.
- 68c232cf - tests: Test entry point semantics on function declarations.
Toggle commit listmentioned in merge request !85 (merged)
Please register or sign in to reply