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
d3f8efe5
Commit
d3f8efe5
authored
Apr 17, 2016
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of WINED3D_BUFFER_FLUSH.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe0342e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
buffer.c
dlls/wined3d/buffer.c
+5
-8
No files found.
dlls/wined3d/buffer.c
View file @
d3f8efe5
...
...
@@ -32,10 +32,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
#define WINED3D_BUFFER_HASDESC 0x01
/* A vertex description has been found. */
#define WINED3D_BUFFER_CREATEBO 0x02
/* Create a buffer object for this buffer. */
#define WINED3D_BUFFER_DOUBLEBUFFER 0x04
/* Keep both a buffer object and a system memory copy for this buffer. */
#define WINED3D_BUFFER_FLUSH 0x08
/* Manual unmap flushing. */
#define WINED3D_BUFFER_DISCARD 0x10
/* A DISCARD lock has occurred since the last preload. */
#define WINED3D_BUFFER_SYNC 0x20
/* There has been at least one synchronized map since the last preload. */
#define WINED3D_BUFFER_APPLESYNC 0x40
/* Using sync as in GL_APPLE_flush_buffer_range. */
#define WINED3D_BUFFER_DISCARD 0x08
/* A DISCARD lock has occurred since the last preload. */
#define WINED3D_BUFFER_SYNC 0x10
/* There has been at least one synchronized map since the last preload. */
#define WINED3D_BUFFER_APPLESYNC 0x20
/* Using sync as in GL_APPLE_flush_buffer_range. */
#define VB_MAXDECLCHANGES 100
/* After that number of decl changes we stop converting */
#define VB_RESETDECLCHANGE 1000
/* Reset the decl changecount after that number of draws */
...
...
@@ -176,8 +175,6 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This, struct wine
{
GL_EXTCALL
(
glBufferParameteriAPPLE
(
This
->
buffer_type_hint
,
GL_BUFFER_FLUSHING_UNMAP_APPLE
,
GL_FALSE
));
checkGLcall
(
"glBufferParameteriAPPLE(This->buffer_type_hint, GL_BUFFER_FLUSHING_UNMAP_APPLE, GL_FALSE)"
);
This
->
flags
|=
WINED3D_BUFFER_FLUSH
;
GL_EXTCALL
(
glBufferParameteriAPPLE
(
This
->
buffer_type_hint
,
GL_BUFFER_SERIALIZED_MODIFY_APPLE
,
GL_FALSE
));
checkGLcall
(
"glBufferParameteriAPPLE(This->buffer_type_hint, GL_BUFFER_SERIALIZED_MODIFY_APPLE, GL_FALSE)"
);
This
->
flags
|=
WINED3D_BUFFER_APPLESYNC
;
...
...
@@ -709,7 +706,7 @@ static void buffer_direct_upload(struct wined3d_buffer *This, const struct wined
GL_EXTCALL
(
glFlushMappedBufferRange
(
This
->
buffer_type_hint
,
start
,
len
));
checkGLcall
(
"glFlushMappedBufferRange"
);
}
else
if
(
This
->
flags
&
WINED3D_BUFFER_
FLUSH
)
else
if
(
This
->
flags
&
WINED3D_BUFFER_
APPLESYNC
)
{
GL_EXTCALL
(
glFlushMappedBufferRangeAPPLE
(
This
->
buffer_type_hint
,
start
,
len
));
checkGLcall
(
"glFlushMappedBufferRangeAPPLE"
);
...
...
@@ -1093,7 +1090,7 @@ void CDECL wined3d_buffer_unmap(struct wined3d_buffer *buffer)
checkGLcall
(
"glFlushMappedBufferRange"
);
}
}
else
if
(
buffer
->
flags
&
WINED3D_BUFFER_
FLUSH
)
else
if
(
buffer
->
flags
&
WINED3D_BUFFER_
APPLESYNC
)
{
for
(
i
=
0
;
i
<
buffer
->
modified_areas
;
++
i
)
{
...
...
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