Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b8807b99
Commit
b8807b99
authored
Mar 25, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Update todos for tests that succeed with vkd3d 1.7.
parent
bf9d15e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
hlsl_d3d11.c
dlls/d3dcompiler_43/tests/hlsl_d3d11.c
+6
-3
hlsl_d3d9.c
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
+4
-3
No files found.
dlls/d3dcompiler_43/tests/hlsl_d3d11.c
View file @
b8807b99
...
...
@@ -492,7 +492,7 @@ static void test_trig(void)
if
(
!
init_test_context
(
&
test_context
))
return
;
todo_wine
ps_code
=
compile_shader
(
ps_source
,
"ps_4_0"
);
ps_code
=
compile_shader
(
ps_source
,
"ps_4_0"
);
if
(
ps_code
)
{
draw_quad
(
&
test_context
,
ps_code
);
...
...
@@ -817,7 +817,7 @@ static void test_reflection(void)
{
"a"
,
D3D_SIT_TEXTURE
,
3
,
1
,
D3D_SIF_TEXTURE_COMPONENTS
,
D3D_RETURN_TYPE_FLOAT
,
D3D_SRV_DIMENSION_TEXTURE2D
,
~
0u
},
};
todo_wine
code
=
compile_shader
(
vs_source
,
"vs_5_0"
);
code
=
compile_shader
(
vs_source
,
"vs_5_0"
);
if
(
!
code
)
return
;
...
...
@@ -898,7 +898,10 @@ static void test_reflection(void)
refcount
=
reflection
->
lpVtbl
->
Release
(
reflection
);
ok
(
!
refcount
,
"Got unexpected refcount %lu.
\n
"
,
refcount
);
todo_wine
code
=
compile_shader_flags
(
ps_source
,
"ps_4_0"
,
D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY
);
if
(
!
code
)
return
;
hr
=
D3DReflect
(
ID3D10Blob_GetBufferPointer
(
code
),
ID3D10Blob_GetBufferSize
(
code
),
&
IID_ID3D11ShaderReflection
,
(
void
**
)
&
reflection
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -1123,7 +1126,7 @@ static void test_semantic_reflection(void)
{
winetest_push_context
(
"Test %u"
,
i
);
todo_wine_if
(
i
>
5
)
code
=
compile_shader_flags
(
tests
[
i
].
source
,
tests
[
i
].
target
,
todo_wine_if
(
i
>
6
)
code
=
compile_shader_flags
(
tests
[
i
].
source
,
tests
[
i
].
target
,
tests
[
i
].
legacy
?
D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY
:
0
);
if
(
!
code
)
{
...
...
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
View file @
b8807b99
...
...
@@ -691,7 +691,7 @@ static void test_trig(void)
return
;
device
=
test_context
.
device
;
todo_wine
ps_code
=
compile_shader
(
ps_source
,
"ps_2_0"
);
ps_code
=
compile_shader
(
ps_source
,
"ps_2_0"
);
if
(
ps_code
)
{
draw_quad
(
device
,
ps_code
);
...
...
@@ -702,6 +702,7 @@ static void test_trig(void)
float
expect_x
=
(
sinf
(
i
*
2
*
M_PI
/
32
)
+
1
.
0
f
)
/
2
.
0
f
;
float
expect_y
=
(
cosf
(
i
*
2
*
M_PI
/
32
)
+
1
.
0
f
)
/
2
.
0
f
;
v
=
get_readback_vec4
(
&
rb
,
i
*
640
/
32
,
0
);
todo_wine
ok
(
compare_vec4
(
v
,
expect_x
,
expect_y
,
0
.
0
f
,
0
.
0
f
,
4096
),
"Test %u: Got {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
i
,
v
->
x
,
v
->
y
,
v
->
z
,
v
->
w
,
expect_x
,
expect_y
,
0
.
0
f
,
0
.
0
f
);
...
...
@@ -767,7 +768,7 @@ static void test_return(void)
draw_quad
(
test_context
.
device
,
ps_code
);
v
=
get_color_vec4
(
test_context
.
device
,
0
,
0
);
todo_wine
ok
(
compare_vec4
(
&
v
,
0
.
1
f
,
0
.
2
f
,
0
.
3
f
,
0
.
4
f
,
0
),
ok
(
compare_vec4
(
&
v
,
0
.
1
f
,
0
.
2
f
,
0
.
3
f
,
0
.
4
f
,
0
),
"Got unexpected value {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
v
.
x
,
v
.
y
,
v
.
z
,
v
.
w
);
ID3D10Blob_Release
(
ps_code
);
...
...
@@ -1102,7 +1103,7 @@ static void test_samplers(void)
{
hr
=
IDirect3DDevice9_Clear
(
test_context
.
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
D3DCOLOR_XRGB
(
255
,
0
,
0
),
1
.
0
f
,
0
);
ok
(
hr
==
D3D_OK
,
"Test %u: Got unexpected hr %#lx.
\n
"
,
i
,
hr
);
todo_wine_if
(
i
<
3
)
ps_code
=
compile_shader
(
tests
[
i
],
"ps_2_0"
);
ps_code
=
compile_shader
(
tests
[
i
],
"ps_2_0"
);
if
(
ps_code
)
{
draw_quad
(
test_context
.
device
,
ps_code
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment