tests: Test allocation of unused objects.

This commit is contained in:
Francisco Casas 2023-02-09 17:43:49 -03:00 committed by Alexandre Julliard
parent c5384b38ee
commit 7a7116eaab
Notes: Alexandre Julliard 2023-02-22 21:51:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/66
3 changed files with 53 additions and 1 deletions

View File

@ -135,6 +135,7 @@ vkd3d_shader_tests = \
tests/preproc-macro.shader_test \
tests/preproc-misc.shader_test \
tests/reflect.shader_test \
tests/register-reservations.shader_test \
tests/return.shader_test \
tests/round.shader_test \
tests/sampler.shader_test \

View File

@ -0,0 +1,51 @@
[require]
shader model >= 4.0
[texture 0]
size (1, 1)
0.0 0.0 0.0 99.0
[texture 1]
size (1, 1)
1.0 1.0 1.0 99.0
[texture 2]
size (1, 1)
2.0 2.0 2.0 99.0
[texture 3]
size (1, 1)
3.0 3.0 3.0 99.0
[texture 4]
size (1, 1)
4.0 4.0 4.0 99.0
[pixel shader]
Texture2D unused : register(t0);
Texture2D tex;
float4 main() : sv_target
{
return tex.Load(int3(0, 0, 0));
}
[test]
draw quad
todo probe all rgba (1.0, 1.0, 1.0, 99.0)
[pixel shader]
Texture2D unused[2][2] : register(t0);
Texture2D tex;
float4 main() : sv_target
{
return tex.Load(int3(0, 0, 0));
}
[test]
draw quad
todo probe all rgba (4.0, 4.0, 4.0, 99.0)

View File

@ -167,7 +167,7 @@ static ID3D12RootSignature *d3d12_runner_create_root_signature(struct d3d12_shad
ID3D12GraphicsCommandList *command_list, unsigned int *uniform_index)
{
D3D12_ROOT_SIGNATURE_DESC root_signature_desc = {0};
D3D12_ROOT_PARAMETER root_params[4], *root_param;
D3D12_ROOT_PARAMETER root_params[5], *root_param;
D3D12_STATIC_SAMPLER_DESC static_samplers[1];
ID3D12RootSignature *root_signature;
HRESULT hr;