From fac9f2c4b0df5ab45c9c960b9c1ed337244e121f Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 15 Sep 2017 08:21:22 +1000 Subject: [PATCH] st/mesa: set UseSTD430AsDefaultPacking const based on CAP MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_extensions.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.30.2