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
85ba92c3
Commit
85ba92c3
authored
Feb 08, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of wined3d_device_update_surface().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0053d06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
24 deletions
+1
-24
device.c
dlls/wined3d/device.c
+1
-21
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-1
wined3d.h
include/wine/wined3d.h
+0
-2
No files found.
dlls/wined3d/device.c
View file @
85ba92c3
...
@@ -3676,7 +3676,7 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
...
@@ -3676,7 +3676,7 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
i
*
src_levels
+
j
+
src_skip_levels
));
i
*
src_levels
+
j
+
src_skip_levels
));
dst_surface
=
surface_from_resource
(
wined3d_texture_get_sub_resource
(
dst_texture
,
dst_surface
=
surface_from_resource
(
wined3d_texture_get_sub_resource
(
dst_texture
,
i
*
dst_levels
+
j
));
i
*
dst_levels
+
j
));
if
(
FAILED
(
hr
=
wined3d_device_update_surface
(
device
,
src_surface
,
NULL
,
dst
_surface
,
NULL
)))
if
(
FAILED
(
hr
=
surface_upload_from_surface
(
dst_surface
,
NULL
,
src
_surface
,
NULL
)))
{
{
WARN
(
"Failed to update surface, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to update surface, hr %#x.
\n
"
,
hr
);
return
hr
;
return
hr
;
...
@@ -3850,26 +3850,6 @@ float CDECL wined3d_device_get_npatch_mode(const struct wined3d_device *device)
...
@@ -3850,26 +3850,6 @@ float CDECL wined3d_device_get_npatch_mode(const struct wined3d_device *device)
return
0
.
0
f
;
return
0
.
0
f
;
}
}
/* FIXME: Callers should probably use wined3d_device_update_sub_resource()
* instead. */
HRESULT
CDECL
wined3d_device_update_surface
(
struct
wined3d_device
*
device
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
struct
wined3d_surface
*
dst_surface
,
const
POINT
*
dst_point
)
{
TRACE
(
"device %p, src_surface %p, src_rect %s, dst_surface %p, dst_point %s.
\n
"
,
device
,
src_surface
,
wine_dbgstr_rect
(
src_rect
),
dst_surface
,
wine_dbgstr_point
(
dst_point
));
if
(
src_surface
->
resource
.
pool
!=
WINED3D_POOL_SYSTEM_MEM
||
dst_surface
->
resource
.
pool
!=
WINED3D_POOL_DEFAULT
)
{
WARN
(
"source %p must be SYSTEMMEM and dest %p must be DEFAULT, returning WINED3DERR_INVALIDCALL
\n
"
,
src_surface
,
dst_surface
);
return
WINED3DERR_INVALIDCALL
;
}
return
surface_upload_from_surface
(
dst_surface
,
dst_point
,
src_surface
,
src_rect
);
}
void
CDECL
wined3d_device_copy_resource
(
struct
wined3d_device
*
device
,
void
CDECL
wined3d_device_copy_resource
(
struct
wined3d_device
*
device
,
struct
wined3d_resource
*
dst_resource
,
struct
wined3d_resource
*
src_resource
)
struct
wined3d_resource
*
dst_resource
,
struct
wined3d_resource
*
src_resource
)
{
{
...
...
dlls/wined3d/wined3d.spec
View file @
85ba92c3
...
@@ -160,7 +160,6 @@
...
@@ -160,7 +160,6 @@
@ cdecl wined3d_device_uninit_3d(ptr)
@ cdecl wined3d_device_uninit_3d(ptr)
@ cdecl wined3d_device_uninit_gdi(ptr)
@ cdecl wined3d_device_uninit_gdi(ptr)
@ cdecl wined3d_device_update_sub_resource(ptr ptr long ptr ptr long long)
@ cdecl wined3d_device_update_sub_resource(ptr ptr long ptr ptr long long)
@ cdecl wined3d_device_update_surface(ptr ptr ptr ptr ptr)
@ cdecl wined3d_device_update_texture(ptr ptr ptr)
@ cdecl wined3d_device_update_texture(ptr ptr ptr)
@ cdecl wined3d_device_validate_device(ptr ptr)
@ cdecl wined3d_device_validate_device(ptr ptr)
...
...
include/wine/wined3d.h
View file @
85ba92c3
...
@@ -2319,8 +2319,6 @@ HRESULT __cdecl wined3d_device_uninit_gdi(struct wined3d_device *device);
...
@@ -2319,8 +2319,6 @@ HRESULT __cdecl wined3d_device_uninit_gdi(struct wined3d_device *device);
void
__cdecl
wined3d_device_update_sub_resource
(
struct
wined3d_device
*
device
,
struct
wined3d_resource
*
resource
,
void
__cdecl
wined3d_device_update_sub_resource
(
struct
wined3d_device
*
device
,
struct
wined3d_resource
*
resource
,
unsigned
int
sub_resource_idx
,
const
struct
wined3d_box
*
box
,
const
void
*
data
,
unsigned
int
row_pitch
,
unsigned
int
sub_resource_idx
,
const
struct
wined3d_box
*
box
,
const
void
*
data
,
unsigned
int
row_pitch
,
unsigned
int
depth_pitch
);
unsigned
int
depth_pitch
);
HRESULT
__cdecl
wined3d_device_update_surface
(
struct
wined3d_device
*
device
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
struct
wined3d_surface
*
dst_surface
,
const
POINT
*
dst_point
);
HRESULT
__cdecl
wined3d_device_update_texture
(
struct
wined3d_device
*
device
,
HRESULT
__cdecl
wined3d_device_update_texture
(
struct
wined3d_device
*
device
,
struct
wined3d_texture
*
src_texture
,
struct
wined3d_texture
*
dst_texture
);
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
,
DWORD
*
num_passes
);
...
...
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