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
b22ee99f
Commit
b22ee99f
authored
Feb 13, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Accept some broken results in test_scalar_instructions().
parent
91672c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
visual.c
dlls/d3d8/tests/visual.c
+11
-7
No files found.
dlls/d3d8/tests/visual.c
View file @
b22ee99f
...
...
@@ -1767,15 +1767,18 @@ static void test_scalar_instructions(IDirect3DDevice8 *device)
const
char
*
name
;
const
DWORD
*
byte_code
;
D3DCOLOR
color
;
/* Some drivers, including Intel HD4000 10.18.10.3345 and VMware SVGA
* 3D 7.14.1.5025, use the .x component instead of the .w one. */
D3DCOLOR
broken_color
;
}
test_data
[]
=
{
{
"rcp_test"
,
rcp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x80
,
0x80
,
0x80
)},
{
"rsq_test"
,
rsq_test
,
D3DCOLOR_ARGB
(
0x00
,
0xb4
,
0xb4
,
0xb4
)},
{
"exp_test"
,
exp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)},
{
"expp_test"
,
expp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)},
{
"log_test"
,
log_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)},
{
"logp_test"
,
logp_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)},
{
"rcp_test"
,
rcp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x80
,
0x80
,
0x80
)
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
},
{
"rsq_test"
,
rsq_test
,
D3DCOLOR_ARGB
(
0x00
,
0xb4
,
0xb4
,
0xb4
)
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
},
{
"exp_test"
,
exp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)
,
D3DCOLOR_ARGB
(
0x00
,
0xd6
,
0xd6
,
0xd6
)
},
{
"expp_test"
,
expp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
},
{
"log_test"
,
log_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0x00
,
0x00
)
},
{
"logp_test"
,
logp_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
)
},
};
unsigned
int
i
;
DWORD
shader
;
...
...
@@ -1800,7 +1803,8 @@ static void test_scalar_instructions(IDirect3DDevice8 *device)
ok
(
SUCCEEDED
(
hr
),
"%s: Failed to end scene, hr %#x.
\n
"
,
test_data
[
i
].
name
,
hr
);
color
=
getPixelColor
(
device
,
320
,
240
);
ok
(
color_match
(
color
,
test_data
[
i
].
color
,
4
),
"%s: Got unexpected color 0x%08x, expected 0x%08x.
\n
"
,
ok
(
color_match
(
color
,
test_data
[
i
].
color
,
4
)
||
broken
(
color_match
(
color
,
test_data
[
i
].
broken_color
,
4
)),
"%s: Got unexpected color 0x%08x, expected 0x%08x.
\n
"
,
test_data
[
i
].
name
,
color
,
test_data
[
i
].
color
);
hr
=
IDirect3DDevice8_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
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