aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-09-15 08:21:22 +1000
committerTimothy Arceri <[email protected]>2017-09-15 11:42:55 +1000
commitfac9f2c4b0df5ab45c9c960b9c1ed337244e121f (patch)
treebd5c7a27a4e1d5d96417b5e333564d3f576f4e6d /src/mesa/state_tracker
parentc96e45ebf055f221021d4bd4533702ac2d9a5ad9 (diff)
st/mesa: set UseSTD430AsDefaultPacking const based on CAP
Reviewed-by: Marek Olšák <[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 bc206df3bf1..4f2ad35d56e 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -466,6 +466,9 @@ void st_init_limits(struct pipe_screen *screen,
c->AllowMappedBuffersDuringExecution =
screen->get_param(screen, PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION);
+
+ c->UseSTD430AsDefaultPacking =
+ screen->get_param(screen, PIPE_CAP_LOAD_CONSTBUF);
}