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
3e51b67e
Commit
3e51b67e
authored
Dec 29, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_stateblock_state to wined3d_device_validate_device().
Revert the use of wined3d_state_uses_depth_buffer() in this function to the version before
8b4e07d5
.
parent
d8c3b778
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
14 deletions
+11
-14
device.c
dlls/d3d8/device.c
+1
-2
device.c
dlls/d3d9/device.c
+1
-2
device.c
dlls/ddraw/device.c
+1
-2
device.c
dlls/wined3d/device.c
+5
-6
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-1
wined3d.h
include/wine/wined3d.h
+2
-1
No files found.
dlls/d3d8/device.c
View file @
3e51b67e
...
...
@@ -2424,8 +2424,7 @@ static HRESULT WINAPI d3d8_device_ValidateDevice(IDirect3DDevice8 *iface, DWORD
TRACE
(
"iface %p, pass_count %p.
\n
"
,
iface
,
pass_count
);
wined3d_mutex_lock
();
wined3d_device_apply_stateblock
(
device
->
wined3d_device
,
device
->
state
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
pass_count
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
device
->
stateblock_state
,
pass_count
);
wined3d_mutex_unlock
();
/* In d3d8, texture filters are not validated, so errors concerning
...
...
dlls/d3d9/device.c
View file @
3e51b67e
...
...
@@ -2899,8 +2899,7 @@ static HRESULT WINAPI d3d9_device_ValidateDevice(IDirect3DDevice9Ex *iface, DWOR
TRACE
(
"iface %p, pass_count %p.
\n
"
,
iface
,
pass_count
);
wined3d_mutex_lock
();
wined3d_device_apply_stateblock
(
device
->
wined3d_device
,
device
->
state
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
pass_count
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
device
->
stateblock_state
,
pass_count
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/ddraw/device.c
View file @
3e51b67e
...
...
@@ -5079,8 +5079,7 @@ static HRESULT d3d_device7_ValidateDevice(IDirect3DDevice7 *iface, DWORD *pass_c
TRACE
(
"iface %p, pass_count %p.
\n
"
,
iface
,
pass_count
);
wined3d_mutex_lock
();
wined3d_device_apply_stateblock
(
device
->
wined3d_device
,
device
->
state
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
pass_count
);
hr
=
wined3d_device_validate_device
(
device
->
wined3d_device
,
device
->
stateblock_state
,
pass_count
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/wined3d/device.c
View file @
3e51b67e
...
...
@@ -3701,9 +3701,9 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
return
WINED3D_OK
;
}
HRESULT
CDECL
wined3d_device_validate_device
(
const
struct
wined3d_device
*
device
,
DWORD
*
num_passes
)
HRESULT
CDECL
wined3d_device_validate_device
(
const
struct
wined3d_device
*
device
,
const
struct
wined3d_stateblock_state
*
state
,
DWORD
*
num_passes
)
{
const
struct
wined3d_state
*
state
=
device
->
cs
->
c
.
state
;
const
struct
wined3d_state
*
device_
state
=
device
->
cs
->
c
.
state
;
struct
wined3d_texture
*
texture
;
unsigned
i
;
...
...
@@ -3744,11 +3744,10 @@ HRESULT CDECL wined3d_device_validate_device(const struct wined3d_device *device
}
}
if
(
wined3d_state_uses_depth_buffer
(
state
)
||
(
state
->
depth_stencil_state
&&
state
->
depth_stencil_state
->
desc
.
stencil
))
if
(
state
->
rs
[
WINED3D_RS_ZENABLE
]
||
state
->
rs
[
WINED3D_RS_ZWRITEENABLE
]
||
state
->
rs
[
WINED3D_RS_STENCILENABLE
])
{
struct
wined3d_rendertarget_view
*
rt
=
state
->
fb
.
render_targets
[
0
];
struct
wined3d_rendertarget_view
*
ds
=
state
->
fb
.
depth_stencil
;
struct
wined3d_rendertarget_view
*
rt
=
device_
state
->
fb
.
render_targets
[
0
];
struct
wined3d_rendertarget_view
*
ds
=
device_
state
->
fb
.
depth_stencil
;
if
(
ds
&&
rt
&&
(
ds
->
width
<
rt
->
width
||
ds
->
height
<
rt
->
height
))
{
...
...
dlls/wined3d/wined3d.spec
View file @
3e51b67e
...
...
@@ -87,7 +87,7 @@
@ cdecl wined3d_device_set_software_vertex_processing(ptr long)
@ cdecl wined3d_device_show_cursor(ptr long)
@ cdecl wined3d_device_update_texture(ptr ptr ptr)
@ cdecl wined3d_device_validate_device(ptr ptr)
@ cdecl wined3d_device_validate_device(ptr ptr
ptr
)
@ cdecl wined3d_device_context_blt(ptr ptr long ptr ptr long ptr long ptr long)
@ cdecl wined3d_device_context_clear_rendertarget_view(ptr ptr ptr long ptr float long)
...
...
include/wine/wined3d.h
View file @
3e51b67e
...
...
@@ -2419,7 +2419,8 @@ void __cdecl wined3d_device_set_software_vertex_processing(struct wined3d_device
BOOL
__cdecl
wined3d_device_show_cursor
(
struct
wined3d_device
*
device
,
BOOL
show
);
HRESULT
__cdecl
wined3d_device_update_texture
(
struct
wined3d_device
*
device
,
struct
wined3d_texture
*
src_texture
,
struct
wined3d_texture
*
dst_texture
);
HRESULT
__cdecl
wined3d_device_validate_device
(
const
struct
wined3d_device
*
device
,
DWORD
*
num_passes
);
HRESULT
__cdecl
wined3d_device_validate_device
(
const
struct
wined3d_device
*
device
,
const
struct
wined3d_stateblock_state
*
state
,
DWORD
*
num_passes
);
HRESULT
__cdecl
wined3d_device_context_blt
(
struct
wined3d_device_context
*
context
,
struct
wined3d_texture
*
dst_texture
,
unsigned
int
dst_sub_resource_idx
,
const
RECT
*
dst_rect
,
...
...
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