From: Timothy Arceri Date: Thu, 14 Sep 2017 22:21:22 +0000 (+1000) Subject: st/mesa: set UseSTD430AsDefaultPacking const based on CAP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fac9f2c4b0df5ab45c9c960b9c1ed337244e121f;p=mesa.git st/mesa: set UseSTD430AsDefaultPacking const based on CAP Reviewed-by: Marek Olšák --- 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); }