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
bb648268
Commit
bb648268
authored
Nov 09, 2022
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the chunk allocator for GL element array buffers.
parent
c7f6dc64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
device.c
dlls/wined3d/device.c
+9
-2
No files found.
dlls/wined3d/device.c
View file @
bb648268
...
...
@@ -1084,7 +1084,8 @@ static struct wined3d_allocator_block *wined3d_device_gl_allocate_memory(struct
return
block
;
}
static
bool
use_buffer_chunk_suballocation
(
const
struct
wined3d_gl_info
*
gl_info
,
GLenum
binding
)
static
bool
use_buffer_chunk_suballocation
(
struct
wined3d_device_gl
*
device_gl
,
const
struct
wined3d_gl_info
*
gl_info
,
GLenum
binding
)
{
switch
(
binding
)
{
...
...
@@ -1095,6 +1096,12 @@ static bool use_buffer_chunk_suballocation(const struct wined3d_gl_info *gl_info
case
GL_UNIFORM_BUFFER
:
return
true
;
case
GL_ELEMENT_ARRAY_BUFFER
:
/* There is no way to specify an element array buffer offset for
* indirect draws in OpenGL. */
return
device_gl
->
d
.
wined3d
->
flags
&
WINED3D_NO_DRAW_INDIRECT
||
!
gl_info
->
supported
[
ARB_DRAW_INDIRECT
];
case
GL_TEXTURE_BUFFER
:
return
gl_info
->
supported
[
ARB_TEXTURE_BUFFER_RANGE
];
...
...
@@ -1117,7 +1124,7 @@ bool wined3d_device_gl_create_bo(struct wined3d_device_gl *device_gl, struct win
if
(
gl_info
->
supported
[
ARB_BUFFER_STORAGE
])
{
if
(
use_buffer_chunk_suballocation
(
gl_info
,
binding
))
if
(
use_buffer_chunk_suballocation
(
device_gl
,
gl_info
,
binding
))
{
if
((
memory
=
wined3d_device_gl_allocate_memory
(
device_gl
,
context_gl
,
memory_type_idx
,
size
,
&
id
)))
buffer_offset
=
memory
->
offset
;
...
...
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