st/mesa: set UseSTD430AsDefaultPacking const based on CAP
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 14 Sep 2017 22:21:22 +0000 (08:21 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 15 Sep 2017 01:42:55 +0000 (11:42 +1000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c

index bc206df3bf178d8d5ed2c550a29441cabc3a63fb..4f2ad35d56e3f5b50d5e766c09596347f5e1e91c 100644 (file)
@@ -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);
 }