From a70a401f523bd51203dee398770f54fd0aa37728 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 15 Sep 2017 08:22:33 +1000 Subject: [PATCH] radeonsi: enable STD430 packing of UBOs by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Before this change we were defaulting to STD140 which is slightly less efficient at packing arrays. Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 262bdc921e5..c47e6558049 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -486,6 +486,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_NIR_SAMPLERS_AS_DEREF: case PIPE_CAP_QUERY_SO_OVERFLOW: case PIPE_CAP_MEMOBJ: + case PIPE_CAP_LOAD_CONSTBUF: return 1; case PIPE_CAP_INT64: @@ -575,7 +576,6 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_UMA: case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE: case PIPE_CAP_POST_DEPTH_COVERAGE: - case PIPE_CAP_LOAD_CONSTBUF: return 0; case PIPE_CAP_QUERY_BUFFER_OBJECT: -- 2.30.2