vkd3d-shader/dxil: Handle SV_ClipDistance and SV_CullDistance.

This commit is contained in:
Conor McCarthy 2024-04-23 20:46:45 +10:00 committed by Alexandre Julliard
parent 01af0f94bb
commit 9e57039fce
Notes: Alexandre Julliard 2024-05-14 23:00:31 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/864
2 changed files with 7 additions and 5 deletions

View File

@ -8455,6 +8455,8 @@ static const enum vkd3d_shader_sysval_semantic sysval_semantic_table[] =
[SEMANTIC_KIND_VERTEXID] = VKD3D_SHADER_SV_VERTEX_ID, [SEMANTIC_KIND_VERTEXID] = VKD3D_SHADER_SV_VERTEX_ID,
[SEMANTIC_KIND_INSTANCEID] = VKD3D_SHADER_SV_INSTANCE_ID, [SEMANTIC_KIND_INSTANCEID] = VKD3D_SHADER_SV_INSTANCE_ID,
[SEMANTIC_KIND_POSITION] = VKD3D_SHADER_SV_POSITION, [SEMANTIC_KIND_POSITION] = VKD3D_SHADER_SV_POSITION,
[SEMANTIC_KIND_CLIPDISTANCE] = VKD3D_SHADER_SV_CLIP_DISTANCE,
[SEMANTIC_KIND_CULLDISTANCE] = VKD3D_SHADER_SV_CULL_DISTANCE,
[SEMANTIC_KIND_PRIMITIVEID] = VKD3D_SHADER_SV_PRIMITIVE_ID, [SEMANTIC_KIND_PRIMITIVEID] = VKD3D_SHADER_SV_PRIMITIVE_ID,
[SEMANTIC_KIND_ISFRONTFACE] = VKD3D_SHADER_SV_IS_FRONT_FACE, [SEMANTIC_KIND_ISFRONTFACE] = VKD3D_SHADER_SV_IS_FRONT_FACE,
[SEMANTIC_KIND_COVERAGE] = VKD3D_SHADER_SV_COVERAGE, [SEMANTIC_KIND_COVERAGE] = VKD3D_SHADER_SV_COVERAGE,

View File

@ -48,7 +48,7 @@ float4 main(const in float4 position : SV_Position) : SV_Target
[test] [test]
clear rtv 0 1.0 1.0 1.0 1.0 clear rtv 0 1.0 1.0 1.0 1.0
todo draw triangle strip 4 todo(sm<6) draw triangle strip 4
probe all rgba (0.0, 1.0, 0.0, 1.0) probe all rgba (0.0, 1.0, 0.0, 1.0)
[vb 1] [vb 1]
@ -59,7 +59,7 @@ probe all rgba (0.0, 1.0, 0.0, 1.0)
[test] [test]
clear rtv 0 1.0 1.0 1.0 1.0 clear rtv 0 1.0 1.0 1.0 1.0
todo draw triangle strip 4 todo(sm<6) draw triangle strip 4
probe all rgba (0.0, 1.0, 0.0, 1.0) probe all rgba (0.0, 1.0, 0.0, 1.0)
[vb 1] [vb 1]
@ -70,7 +70,7 @@ probe all rgba (0.0, 1.0, 0.0, 1.0)
[test] [test]
clear rtv 0 1.0 1.0 1.0 1.0 clear rtv 0 1.0 1.0 1.0 1.0
todo draw triangle strip 4 todo(sm<6) draw triangle strip 4
probe all rgba (1.0, 1.0, 1.0, 1.0) probe all rgba (1.0, 1.0, 1.0, 1.0)
[vb 1] [vb 1]
@ -81,7 +81,7 @@ probe all rgba (1.0, 1.0, 1.0, 1.0)
[test] [test]
clear rtv 0 1.0 1.0 1.0 1.0 clear rtv 0 1.0 1.0 1.0 1.0
todo draw triangle strip 4 todo(sm<6) draw triangle strip 4
probe rtv 0 (160, 240) rgba (0.0, 1.0, 0.0, 1.0) probe rtv 0 (160, 240) rgba (0.0, 1.0, 0.0, 1.0)
probe rtv 0 (480, 240) rgba (1.0, 1.0, 1.0, 1.0) probe rtv 0 (480, 240) rgba (1.0, 1.0, 1.0, 1.0)
@ -93,6 +93,6 @@ probe rtv 0 (480, 240) rgba (1.0, 1.0, 1.0, 1.0)
[test] [test]
clear rtv 0 1.0 1.0 1.0 1.0 clear rtv 0 1.0 1.0 1.0 1.0
todo draw triangle strip 4 todo(sm<6) draw triangle strip 4
probe rtv 0 (320, 120) rgba (0.0, 1.0, 0.0, 1.0) probe rtv 0 (320, 120) rgba (0.0, 1.0, 0.0, 1.0)
probe rtv 0 (320, 360) rgba (1.0, 1.0, 1.0, 1.0) probe rtv 0 (320, 360) rgba (1.0, 1.0, 1.0, 1.0)