Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7bbf2964
Commit
7bbf2964
authored
Sep 07, 2023
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Fix skipping ATI2N in test_resource_access.
parent
ac85fa8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
device.c
dlls/d3d8/tests/device.c
+17
-1
No files found.
dlls/d3d8/tests/device.c
View file @
7bbf2964
...
...
@@ -9727,6 +9727,7 @@ static void test_resource_access(void)
D3DADAPTER_IDENTIFIER8
identifier
;
struct
device_desc
device_desc
;
D3DSURFACE_DESC
surface_desc
;
BOOL
skip_ati2n_once
=
FALSE
;
IDirect3DDevice8
*
device
;
unsigned
int
i
,
j
;
IDirect3D8
*
d3d
;
...
...
@@ -9878,7 +9879,11 @@ static void test_resource_access(void)
if
(
tests
[
j
].
format
==
FORMAT_ATI2
&&
FAILED
(
IDirect3D8_CheckDeviceFormat
(
d3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
0
,
D3DRTYPE_TEXTURE
,
format
)))
{
skip
(
"ATI2N texture not supported.
\n
"
);
if
(
!
skip_ati2n_once
)
{
skip
(
"ATI2N texture not supported.
\n
"
);
skip_ati2n_once
=
TRUE
;
}
continue
;
}
...
...
@@ -10034,6 +10039,17 @@ static void test_resource_access(void)
else
format
=
colour_format
;
if
(
tests
[
i
].
format
==
FORMAT_ATI2
&&
FAILED
(
IDirect3D8_CheckDeviceFormat
(
d3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
0
,
D3DRTYPE_VOLUMETEXTURE
,
format
)))
{
if
(
!
skip_ati2n_once
)
{
skip
(
"ATI2N texture not supported.
\n
"
);
skip_ati2n_once
=
TRUE
;
}
continue
;
}
hr
=
IDirect3DDevice8_CreateVolumeTexture
(
device
,
16
,
16
,
1
,
1
,
tests
[
i
].
usage
,
format
,
tests
[
i
].
pool
,
&
texture
);
ok
((
hr
==
((
!
(
tests
[
i
].
usage
&
~
D3DUSAGE_DYNAMIC
)
&&
tests
[
i
].
format
!=
FORMAT_ATI2
)
...
...
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