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
82029cba
Commit
82029cba
authored
Jun 09, 2017
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add a comment about the negation in boolean constant checks.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
26175489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
effect.c
dlls/d3dx9_36/tests/effect.c
+4
-0
No files found.
dlls/d3dx9_36/tests/effect.c
View file @
82029cba
...
@@ -4350,6 +4350,8 @@ static void test_effect_preshader_compare_pbool_consts_(unsigned int line, IDire
...
@@ -4350,6 +4350,8 @@ static void test_effect_preshader_compare_pbool_consts_(unsigned int line, IDire
{
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
test_effect_preshader_bconsts
);
++
i
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
test_effect_preshader_bconsts
);
++
i
)
{
{
/* The negation on both sides is actually needed, sometimes you
* get 0xffffffff instead of 1 on native. */
ok_
(
__FILE__
,
line
)(
!
bdata
[
i
]
==
!
test_effect_preshader_bconsts
[
i
],
ok_
(
__FILE__
,
line
)(
!
bdata
[
i
]
==
!
test_effect_preshader_bconsts
[
i
],
"Pixel shader boolean constants do not match, expected %#x, got %#x, i %u.
\n
"
,
"Pixel shader boolean constants do not match, expected %#x, got %#x, i %u.
\n
"
,
test_effect_preshader_bconsts
[
i
],
bdata
[
i
],
i
);
test_effect_preshader_bconsts
[
i
],
bdata
[
i
],
i
);
...
@@ -4362,6 +4364,8 @@ static void test_effect_preshader_compare_pbool_consts_(unsigned int line, IDire
...
@@ -4362,6 +4364,8 @@ static void test_effect_preshader_compare_pbool_consts_(unsigned int line, IDire
if
(
const_updated_mask
[
i
/
TEST_EFFECT_BITMASK_BLOCK_SIZE
]
if
(
const_updated_mask
[
i
/
TEST_EFFECT_BITMASK_BLOCK_SIZE
]
&
(
1u
<<
(
i
%
TEST_EFFECT_BITMASK_BLOCK_SIZE
)))
&
(
1u
<<
(
i
%
TEST_EFFECT_BITMASK_BLOCK_SIZE
)))
{
{
/* The negation on both sides is actually needed, sometimes
* you get 0xffffffff instead of 1 on native. */
ok_
(
__FILE__
,
line
)(
!
bdata
[
i
]
==
!
test_effect_preshader_bconsts
[
i
],
ok_
(
__FILE__
,
line
)(
!
bdata
[
i
]
==
!
test_effect_preshader_bconsts
[
i
],
"Pixel shader boolean constants do not match, expected %#x, got %#x, i %u, parameter %s.
\n
"
,
"Pixel shader boolean constants do not match, expected %#x, got %#x, i %u, parameter %s.
\n
"
,
test_effect_preshader_bconsts
[
i
],
bdata
[
i
],
i
,
updated_param
);
test_effect_preshader_bconsts
[
i
],
bdata
[
i
],
i
,
updated_param
);
...
...
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