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
6fd21281
Commit
6fd21281
authored
Jan 31, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not preload the buffer in wined3d_buffer_unmap().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
413ccc82
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
buffer.c
dlls/wined3d/buffer.c
+1
-5
context.c
dlls/wined3d/context.c
+5
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/buffer.c
View file @
6fd21281
...
...
@@ -879,7 +879,7 @@ drop_query:
This
->
flags
&=
~
WINED3D_BUFFER_APPLESYNC
;
}
void
buffer_mark_used
(
struct
wined3d_buffer
*
buffer
)
static
void
buffer_mark_used
(
struct
wined3d_buffer
*
buffer
)
{
buffer
->
flags
&=
~
WINED3D_BUFFER_DISCARD
;
}
...
...
@@ -1188,10 +1188,6 @@ static void wined3d_buffer_unmap(struct wined3d_buffer *buffer)
buffer_clear_dirty_areas
(
buffer
);
buffer
->
map_ptr
=
NULL
;
}
else
if
(
buffer
->
flags
&
WINED3D_BUFFER_HASDESC
)
{
wined3d_resource_preload
(
&
buffer
->
resource
);
}
}
HRESULT
wined3d_buffer_copy
(
struct
wined3d_buffer
*
dst_buffer
,
unsigned
int
dst_offset
,
...
...
dlls/wined3d/context.c
View file @
6fd21281
...
...
@@ -3505,8 +3505,12 @@ BOOL context_apply_draw_state(struct wined3d_context *context,
for
(
i
=
0
,
map
=
context
->
stream_info
.
use_map
;
map
;
map
>>=
1
,
++
i
)
{
if
(
map
&
1
)
buffer_mark_used
(
state
->
streams
[
context
->
stream_info
.
elements
[
i
].
stream_idx
].
buffer
);
wined3d_buffer_load
(
state
->
streams
[
context
->
stream_info
.
elements
[
i
].
stream_idx
].
buffer
,
context
,
state
);
}
/* Loading the buffers above may have invalidated the stream info. */
if
(
isStateDirty
(
context
,
STATE_STREAMSRC
))
context_update_stream_info
(
context
,
state
);
}
if
(
state
->
index_buffer
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
6fd21281
...
...
@@ -3239,7 +3239,6 @@ static inline struct wined3d_buffer *buffer_from_resource(struct wined3d_resourc
return
CONTAINING_RECORD
(
resource
,
struct
wined3d_buffer
,
resource
);
}
void
buffer_mark_used
(
struct
wined3d_buffer
*
buffer
)
DECLSPEC_HIDDEN
;
DWORD
wined3d_buffer_get_memory
(
struct
wined3d_buffer
*
buffer
,
struct
wined3d_bo_address
*
data
,
DWORD
locations
)
DECLSPEC_HIDDEN
;
void
wined3d_buffer_invalidate_location
(
struct
wined3d_buffer
*
buffer
,
DWORD
location
)
DECLSPEC_HIDDEN
;
...
...
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