Giovanni Mascellani
7de7025750
vkd3d-shader/ir: Disallow array signature elements for normalisation levels < SM6.
2024-12-19 21:06:13 +01:00
Giovanni Mascellani
922af42aca
tests/hlsl: Add some clip/cull distance tests.
2024-12-19 20:54:56 +01:00
Anna (navi) Figueiredo Gomes
d5ed4df254
tests/shader_runner: Add a "mesa<23.3" tag.
2024-12-19 20:34:55 +01:00
Henri Verbeet
31ea11fb0e
tests/shader_runner: Ignore the "backcompat" option for shader model 5.1+.
2024-12-19 12:24:02 +01:00
Elizabeth Figura
d164752efc
vkd3d-shader/d3dbc: Introduce d3dbc_parse_register().
2024-12-18 17:30:16 +01:00
Elizabeth Figura
3c53293028
vkd3d-shader/ir: Separate VKD3DSPR_OUTPUT and VKD3DSPR_TEXCRDOUT.
...
This simplifies the IR.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
8132239ed2
vkd3d-shader/ir: Separate VKD3DSPR_ADDR and VKD3DSPR_TEXTURE.
...
This simplifies the IR.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
0df5dea653
vkd3d-shader/d3d-asm: Define register names in a table.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
65f3f56f63
vkd3d-shader/d3dbc: Normalize to a single VKD3DSPR_CONST register set when reading.
...
We don't need VKD3DSPR_CONST2 et al in the IR, even for disassembly.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
118617916a
vkd3d-shader: Explicitly translate between d3dbc and vsir register types.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
dd450c526f
tests/d3d12: Make the dtof test a bit more interesting.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
efe686105d
vkd3d-shader/spirv: Correctly implement DTOU.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
4130ce5bb9
vkd3d-shader/spirv: Correctly implement DTOI.
2024-12-18 17:30:16 +01:00
Elizabeth Figura
f416713608
vkd3d-shader/spirv: Correctly implement DTOF.
2024-12-18 17:30:16 +01:00
Francisco Casas
825784322d
vkd3d-shader/ir: Properly lower texldp.
2024-12-18 17:30:15 +01:00
Francisco Casas
02fc26507b
tests/hlsl: Test tex2Dproj().
2024-12-18 17:29:10 +01:00
Francisco Casas
7cc802afd7
vkd3d-shader/ir: Properly lower texldb.
2024-12-18 17:27:43 +01:00
Francisco Casas
59df26af79
vkd3d-shader/hlsl: Lower sample lods for SM1.
...
For SM1 the lod bias should be in src0.w.
2024-12-18 17:27:43 +01:00
Anna (navi) Figueiredo Gomes
f09ac4959e
vkd3d-shader/hlsl: Implement the GatherCmp() methods.
2024-12-18 17:27:43 +01:00
Anna (navi) Figueiredo Gomes
fd8bcc188f
tests/hlsl: Add GatherCmp() tests.
2024-12-18 17:27:43 +01:00
Conor McCarthy
8d479d2ea6
vkd3d-shader/dxil: Implement DX intrinsic EvalCentroid.
2024-12-18 17:27:43 +01:00
Conor McCarthy
1bb3b13c0a
vkd3d-shader/dxil: Implement DX intrinsic EvalSampleIndex.
2024-12-18 17:27:43 +01:00
Giovanni Mascellani
ed552e4519
tests/hlsl: Add tests for the EvaluateAttribute*() intrinsics.
...
Based on earlier tests by Conor McCarthy.
2024-12-18 17:27:31 +01:00
Giovanni Mascellani
a68fd1b0de
vkd3d-shader/ir: Simplify shader_register_normalise_arrayed_addressing().
...
The two branches do essentially the same thing, but in different
ways and each one omitting different details. In particular there
is no need to discriminate on whether the register is a relative
address, we can just copy the NULL pointer.
2024-12-17 16:44:00 +01:00
Giovanni Mascellani
3db458697e
vkd3d-shader/ir: Remove a redundant assignment.
...
The hull shader control point normalisation pass already ensures
that output registers in the control point phase have two
indices (the control point index and the register index).
2024-12-17 16:44:00 +01:00