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
b05c797a
Commit
b05c797a
authored
Mar 03, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Use hexadecimal constants in a few ok() checks.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a23192f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
reflection.c
dlls/d3dcompiler_43/tests/reflection.c
+10
-10
No files found.
dlls/d3dcompiler_43/tests/reflection.c
View file @
b05c797a
...
@@ -435,9 +435,9 @@ static void test_reflection_desc_vs(void)
...
@@ -435,9 +435,9 @@ static void test_reflection_desc_vs(void)
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc11
);
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc11
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
sdesc11
.
Version
==
65601
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
Version
,
65601
);
ok
(
sdesc11
.
Version
==
0x10041
,
"Unexpected Version %#x.
\n
"
,
sdesc11
.
Version
);
ok
(
strcmp
(
sdesc11
.
Creator
,
(
char
*
)
shader_creator
)
==
0
,
"GetDesc failed, got
\"
%s
\"
, expected
\"
%s
\"\n
"
,
sdesc11
.
Creator
,
(
char
*
)
shader_c
reator
);
ok
(
!
strcmp
(
sdesc11
.
Creator
,
(
char
*
)
shader_creator
),
"Unexpected Creator
\"
%s
\"
.
\n
"
,
sdesc11
.
C
reator
);
ok
(
sdesc11
.
Flags
==
256
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
Flags
,
256
);
ok
(
sdesc11
.
Flags
==
0x100
,
"Unexpected Flags %#x.
\n
"
,
sdesc11
.
Flags
);
ok
(
sdesc11
.
ConstantBuffers
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
ConstantBuffers
,
0
);
ok
(
sdesc11
.
ConstantBuffers
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
ConstantBuffers
,
0
);
ok
(
sdesc11
.
BoundResources
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
BoundResources
,
0
);
ok
(
sdesc11
.
BoundResources
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
BoundResources
,
0
);
ok
(
sdesc11
.
InputParameters
==
15
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
InputParameters
,
15
);
ok
(
sdesc11
.
InputParameters
==
15
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
InputParameters
,
15
);
...
@@ -786,9 +786,9 @@ static void test_reflection_desc_ps(void)
...
@@ -786,9 +786,9 @@ static void test_reflection_desc_ps(void)
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc11
);
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc11
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
sdesc11
.
Version
==
65
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
Version
,
65
);
ok
(
sdesc11
.
Version
==
0x41
,
"Unexpected Version %#x.
\n
"
,
sdesc11
.
Version
);
ok
(
strcmp
(
sdesc11
.
Creator
,
(
char
*
)
shader_creator
)
==
0
,
"GetDesc failed, got
\"
%s
\"
, expected
\"
%s
\"\n
"
,
sdesc11
.
Creator
,
(
char
*
)
shader_c
reator
);
ok
(
!
strcmp
(
sdesc11
.
Creator
,
(
char
*
)
shader_creator
),
"Unexpected Creator
\"
%s
\"
.
\n
"
,
sdesc11
.
C
reator
);
ok
(
sdesc11
.
Flags
==
256
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
Flags
,
256
);
ok
(
sdesc11
.
Flags
==
0x100
,
"Unexpected Flags %#x.
\n
"
,
sdesc11
.
Flags
);
ok
(
sdesc11
.
ConstantBuffers
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
ConstantBuffers
,
0
);
ok
(
sdesc11
.
ConstantBuffers
==
0
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
ConstantBuffers
,
0
);
ok
(
sdesc11
.
BoundResources
==
4
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
BoundResources
,
4
);
ok
(
sdesc11
.
BoundResources
==
4
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
BoundResources
,
4
);
ok
(
sdesc11
.
InputParameters
==
8
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
InputParameters
,
8
);
ok
(
sdesc11
.
InputParameters
==
8
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc11
.
InputParameters
,
8
);
...
@@ -1652,10 +1652,10 @@ static void test_reflection_constant_buffer(void)
...
@@ -1652,10 +1652,10 @@ static void test_reflection_constant_buffer(void)
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc
);
hr
=
ref11
->
lpVtbl
->
GetDesc
(
ref11
,
&
sdesc
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
expected
=
D3D_COMPILER_VERSION
?
80
:
64
;
expected
=
D3D_COMPILER_VERSION
?
0x50
:
0x40
;
ok
(
sdesc
.
Version
==
expected
,
"
Got unexpected version %u
.
\n
"
,
sdesc
.
Version
);
ok
(
sdesc
.
Version
==
expected
,
"
Unexpected Version %#x
.
\n
"
,
sdesc
.
Version
);
ok
(
strcmp
(
sdesc
.
Creator
,
(
char
*
)
shader_creator
)
==
0
,
"GetDesc failed, got
\"
%s
\"
, expected
\"
%s
\"\n
"
,
sdesc
.
Creator
,
(
char
*
)
shader_c
reator
);
ok
(
!
strcmp
(
sdesc
.
Creator
,
(
char
*
)
shader_creator
),
"Unexpected Creator
\"
%s
\"
.
\n
"
,
sdesc
.
C
reator
);
ok
(
sdesc
.
Flags
==
256
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc
.
Flags
,
256
);
ok
(
sdesc
.
Flags
==
0x100
,
"Unexpected Flags %#x.
\n
"
,
sdesc
.
Flags
);
ok
(
sdesc
.
ConstantBuffers
==
2
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc
.
ConstantBuffers
,
2
);
ok
(
sdesc
.
ConstantBuffers
==
2
,
"GetDesc failed, got %u, expected %u
\n
"
,
sdesc
.
ConstantBuffers
,
2
);
expected
=
D3D_COMPILER_VERSION
?
1
:
2
;
expected
=
D3D_COMPILER_VERSION
?
1
:
2
;
ok
(
sdesc
.
BoundResources
==
expected
,
"Got unexpected BoundResources %u.
\n
"
,
sdesc
.
BoundResources
);
ok
(
sdesc
.
BoundResources
==
expected
,
"Got unexpected BoundResources %u.
\n
"
,
sdesc
.
BoundResources
);
...
...
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