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
c3cda92c
Commit
c3cda92c
authored
May 28, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Remove an invalid point size test.
This test tests point size clamping behaviour when POINTSIZE_MAX < POINTSIZE_MIN, but that behaviour isn't consistent between D3D drivers.
parent
1c12ba44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
visual.c
dlls/d3d9/tests/visual.c
+2
-16
No files found.
dlls/d3d9/tests/visual.c
View file @
c3cda92c
...
@@ -8813,7 +8813,6 @@ static void pointsize_test(IDirect3DDevice9 *device)
...
@@ -8813,7 +8813,6 @@ static void pointsize_test(IDirect3DDevice9 *device)
384
,
64
,
0
.
1
,
384
,
64
,
0
.
1
,
448
,
64
,
0
.
1
,
448
,
64
,
0
.
1
,
512
,
64
,
0
.
1
,
512
,
64
,
0
.
1
,
576
,
64
,
0
.
1
,
};
};
/* Transforms the coordinate system [-1.0;1.0]x[-1.0;1.0] to [0.0;0.0]x[640.0;480.0]. Z is untouched */
/* Transforms the coordinate system [-1.0;1.0]x[-1.0;1.0] to [0.0;0.0]x[640.0;480.0]. Z is untouched */
...
@@ -8902,17 +8901,6 @@ static void pointsize_test(IDirect3DDevice9 *device)
...
@@ -8902,17 +8901,6 @@ static void pointsize_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_POINTLIST
,
1
,
&
vertices
[
18
],
sizeof
(
float
)
*
3
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_POINTLIST
,
1
,
&
vertices
[
18
],
sizeof
(
float
)
*
3
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_DrawPrimitiveUP failed, hr=%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_DrawPrimitiveUP failed, hr=%08x
\n
"
,
hr
);
/* What happens if POINTSIZE_MAX < POINTSIZE_MIN?
* ptsize = 3.0, ptsize_max = 1.0, ptsize_min = 15.0 */
ptsize
=
3
.
0
;
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE
,
*
((
DWORD
*
)
(
&
ptsize
)));
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
ptsize
=
15
.
0
;
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MIN
,
*
((
DWORD
*
)
(
&
ptsize
)));
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_POINTLIST
,
1
,
&
vertices
[
21
],
sizeof
(
float
)
*
3
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_DrawPrimitiveUP failed, hr=%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MAX
,
*
((
DWORD
*
)
(
&
ptsizemax_orig
)));
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MAX
,
*
((
DWORD
*
)
(
&
ptsizemax_orig
)));
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
...
@@ -8924,7 +8912,7 @@ static void pointsize_test(IDirect3DDevice9 *device)
...
@@ -8924,7 +8912,7 @@ static void pointsize_test(IDirect3DDevice9 *device)
ptsize
=
15
.
0
;
ptsize
=
15
.
0
;
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MIN
,
*
((
DWORD
*
)
(
&
ptsize
)));
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MIN
,
*
((
DWORD
*
)
(
&
ptsize
)));
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed, hr=%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_POINTLIST
,
1
,
&
vertices
[
2
4
],
sizeof
(
float
)
*
3
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_POINTLIST
,
1
,
&
vertices
[
2
1
],
sizeof
(
float
)
*
3
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_DrawPrimitiveUP failed, hr=%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_DrawPrimitiveUP failed, hr=%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MIN
,
*
((
DWORD
*
)
(
&
ptsizemin_orig
)));
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE_MIN
,
*
((
DWORD
*
)
(
&
ptsizemin_orig
)));
...
@@ -8947,10 +8935,8 @@ static void pointsize_test(IDirect3DDevice9 *device)
...
@@ -8947,10 +8935,8 @@ static void pointsize_test(IDirect3DDevice9 *device)
ok
(
point_match
(
device
,
320
,
64
,
0
),
"point_match(320, 64, 0) failed, expected point size 1.
\n
"
);
ok
(
point_match
(
device
,
320
,
64
,
0
),
"point_match(320, 64, 0) failed, expected point size 1.
\n
"
);
/* ptsize = 15, ptsize_max = 1 --> point has size 1 */
/* ptsize = 15, ptsize_max = 1 --> point has size 1 */
ok
(
point_match
(
device
,
448
,
64
,
0
),
"point_match(448, 64, 0) failed, expected point size 1.
\n
"
);
ok
(
point_match
(
device
,
448
,
64
,
0
),
"point_match(448, 64, 0) failed, expected point size 1.
\n
"
);
/* ptsize = 4, ptsize_max = 1, ptsize_min = 15 --> point has size 1 */
ok
(
point_match
(
device
,
512
,
64
,
0
),
"point_match(512, 64, 0) failed, expected point size 1.
\n
"
);
/* ptsize = 1, ptsize_max = default(64), ptsize_min = 15 --> point has size 15 */
/* ptsize = 1, ptsize_max = default(64), ptsize_min = 15 --> point has size 15 */
ok
(
point_match
(
device
,
5
76
,
64
,
7
),
"point_match(576
, 64, 7) failed, expected point size 15.
\n
"
);
ok
(
point_match
(
device
,
5
12
,
64
,
7
),
"point_match(512
, 64, 7) failed, expected point size 15.
\n
"
);
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
IDirect3DDevice9_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