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
5c93f092
Commit
5c93f092
authored
Mar 26, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Make the visual test pass on GeForce Go 7600.
parent
fed582de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
visual.c
dlls/d3d9/tests/visual.c
+22
-4
No files found.
dlls/d3d9/tests/visual.c
View file @
5c93f092
...
...
@@ -5642,6 +5642,7 @@ static void shademode_test(IDirect3DDevice9 *device)
/* Render a quad and try all of the different fixed function shading models. */
HRESULT
hr
;
DWORD
color0
,
color1
;
BYTE
r
,
g
,
b
;
DWORD
shademode
=
D3DSHADE_FLAT
;
DWORD
primtype
=
D3DPT_TRIANGLESTRIP
;
LPVOID
data
=
NULL
;
...
...
@@ -5736,14 +5737,31 @@ static void shademode_test(IDirect3DDevice9 *device)
break
;
case
D3DSHADE_GOURAUD
:
/* Should be an interpolated blend */
ok
(
color0
==
0x000dca28
,
"GOURAUD shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
ok
(
color1
==
0x000d45c7
,
"GOURAUD shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
r
=
(
color0
&
0x00ff0000
)
>>
16
;
g
=
(
color0
&
0x0000ff00
)
>>
8
;
b
=
(
color0
&
0x000000ff
);
ok
(
r
>=
0x0d
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
"GOURAUD shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
r
=
(
color1
&
0x00ff0000
)
>>
16
;
g
=
(
color1
&
0x0000ff00
)
>>
8
;
b
=
(
color1
&
0x000000ff
);
ok
(
r
==
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
"GOURAUD shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
shademode
=
D3DSHADE_PHONG
;
break
;
case
D3DSHADE_PHONG
:
/* Should be the same as GOURAUD, since no hardware implements this */
ok
(
color0
==
0x000dca28
,
"PHONG shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
ok
(
color1
==
0x000d45c7
,
"PHONG shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
r
=
(
color0
&
0x00ff0000
)
>>
16
;
g
=
(
color0
&
0x0000ff00
)
>>
8
;
b
=
(
color0
&
0x000000ff
);
ok
(
r
>=
0x0d
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
"PHONG shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
r
=
(
color1
&
0x00ff0000
)
>>
16
;
g
=
(
color1
&
0x0000ff00
)
>>
8
;
b
=
(
color1
&
0x000000ff
);
ok
(
r
==
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
"PHONG shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
break
;
}
}
...
...
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