mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: add gl_constants::AllowMappedBuffersDuringExecution
for skipping mapped-buffer checking in every GL draw call Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
50189379fa
commit
d02d8ea8b6
2 changed files with 6 additions and 0 deletions
|
|
@ -3908,6 +3908,9 @@ struct gl_constants
|
|||
|
||||
/** Used as an input for sha1 generation in the on-disk shader cache */
|
||||
unsigned char *dri_config_options_sha1;
|
||||
|
||||
/** When drivers are OK with mapped buffers during draw and other calls. */
|
||||
bool AllowMappedBuffersDuringExecution;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -463,6 +463,9 @@ void st_init_limits(struct pipe_screen *screen,
|
|||
|
||||
c->SparseBufferPageSize =
|
||||
screen->get_param(screen, PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE);
|
||||
|
||||
c->AllowMappedBuffersDuringExecution =
|
||||
screen->get_param(screen, PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue