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
4ca8f710
Commit
4ca8f710
authored
Jan 13, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move map binding loading to wined3d_surface_map.
parent
e2c0bc63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
surface.c
dlls/wined3d/surface.c
+18
-17
No files found.
dlls/wined3d/surface.c
View file @
4ca8f710
...
...
@@ -820,23 +820,6 @@ static BYTE *surface_map(struct wined3d_surface *surface, const RECT *rect, DWOR
TRACE
(
"surface %p, rect %s, flags %#x.
\n
"
,
surface
,
wine_dbgstr_rect
(
rect
),
flags
);
surface_prepare_map_memory
(
surface
);
if
(
flags
&
WINED3D_MAP_DISCARD
)
{
TRACE
(
"WINED3D_MAP_DISCARD flag passed, marking SYSMEM as up to date.
\n
"
);
surface_validate_location
(
surface
,
surface
->
map_binding
);
}
else
{
if
(
surface
->
resource
.
usage
&
WINED3DUSAGE_DYNAMIC
)
WARN_
(
d3d_perf
)(
"Mapping a dynamic surface without WINED3D_MAP_DISCARD.
\n
"
);
surface_load_location
(
surface
,
surface
->
map_binding
);
}
if
(
!
(
flags
&
(
WINED3D_MAP_NO_DIRTY_UPDATE
|
WINED3D_MAP_READONLY
)))
surface_invalidate_location
(
surface
,
~
surface
->
map_binding
);
switch
(
surface
->
map_binding
)
{
case
SFLAG_INUSERMEM
:
...
...
@@ -3205,6 +3188,24 @@ HRESULT CDECL wined3d_surface_map(struct wined3d_surface *surface,
}
}
surface_prepare_map_memory
(
surface
);
if
(
flags
&
WINED3D_MAP_DISCARD
)
{
TRACE
(
"WINED3D_MAP_DISCARD flag passed, marking %s as up to date.
\n
"
,
debug_surflocation
(
surface
->
map_binding
));
surface_validate_location
(
surface
,
surface
->
map_binding
);
}
else
{
if
(
surface
->
resource
.
usage
&
WINED3DUSAGE_DYNAMIC
)
WARN_
(
d3d_perf
)(
"Mapping a dynamic surface without WINED3D_MAP_DISCARD.
\n
"
);
surface_load_location
(
surface
,
surface
->
map_binding
);
}
if
(
!
(
flags
&
(
WINED3D_MAP_NO_DIRTY_UPDATE
|
WINED3D_MAP_READONLY
)))
surface_invalidate_location
(
surface
,
~
surface
->
map_binding
);
base_memory
=
surface
->
surface_ops
->
surface_map
(
surface
,
rect
,
flags
);
if
(
format
->
flags
&
WINED3DFMT_FLAG_BROKEN_PITCH
)
...
...
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