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
f6b30a17
Commit
f6b30a17
authored
May 23, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: AMD cards don't clip transformed vertices.
parent
9e19cb07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
visual.c
dlls/d3d9/tests/visual.c
+19
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
f6b30a17
...
...
@@ -2127,6 +2127,9 @@ static void z_range_test(IDirect3DDevice9 *device)
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
D3DDECLMETHOD_DEFAULT
,
D3DDECLUSAGE_POSITION
,
0
},
D3DDECL_END
()
};
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
/* Does the Present clear the depth stencil? Clear the depth buffer with some value != 0,
* then call Present. Then clear the color buffer to make sure it has some defined content
* after the Present with D3DSWAPEFFECT_DISCARD. After that draw a plane that is somewhere cut
...
...
@@ -2183,7 +2186,14 @@ static void z_range_test(IDirect3DDevice9 *device)
color
=
getPixelColor
(
device
,
28
,
238
);
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
28
,
241
);
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
if
(
caps
.
PrimitiveMiscCaps
&
D3DPMISCCAPS_CLIPTLVERTS
)
{
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
}
else
{
ok
(
color
==
0x00ffff00
,
"Z range failed: Got color 0x%08x, expected 0x00ffff00.
\n
"
,
color
);
}
/* Not clipped, > z buffer clear value(0.75) */
color
=
getPixelColor
(
device
,
31
,
238
);
...
...
@@ -2209,13 +2219,19 @@ static void z_range_test(IDirect3DDevice9 *device)
color
=
getPixelColor
(
device
,
321
,
238
);
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
321
,
241
);
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
if
(
caps
.
PrimitiveMiscCaps
&
D3DPMISCCAPS_CLIPTLVERTS
)
{
ok
(
color
==
0x00ffffff
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
}
else
{
ok
(
color
==
0x0000ff00
,
"Z range failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
}
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (0x%08x)
\n
"
,
hr
);
/* Test the shader path */
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
if
(
caps
.
VertexShaderVersion
<
D3DVS_VERSION
(
1
,
1
))
{
skip
(
"Vertex shaders not supported
\n
"
);
goto
out
;
...
...
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