summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-05-15 16:30:30 +0200
committerMarek Olšák <[email protected]>2017-05-17 20:28:44 +0200
commitd02d8ea8b67f8499fe8f19b36d3aff5cd99c1885 (patch)
treed33fe5d5eec92490b7ff574f4715637c0bd7a11a /src/mesa/state_tracker
parent50189379fa6b2b8f30b2f41acfacf9cad1ea2523 (diff)
mesa: add gl_constants::AllowMappedBuffersDuringExecution
for skipping mapped-buffer checking in every GL draw call Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index fffc0ef8ee3..2fa7ba7797e 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -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);
}