summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/panfrost/pan_varyings.c
diff options
context:
space:
mode:
authorIcecream95 <ixn@keemail.me>2020-02-14 20:22:38 +1300
committerMarge Bot <eric+marge@anholt.net>2020-02-14 12:53:36 +0000
commitf3490a141c8d562fc29e714c3735f2ae8e3c0512 (patch)
tree00a48949a663868ff23809b2c0e8e275ce27fa87 /src/gallium/drivers/panfrost/pan_varyings.c
parentefda2cfcf96b1071c18800ff3f878fe627359e8a (diff)
panfrost: Inline panfrost_get_default_swizzle
This commit replaces panfrost_get_default_swizzle with an inlined implementation where the returned values can be determined at compile time. According to perf, this previously used about 2% CPU for Openarena. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3824>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_varyings.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_varyings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_varyings.c b/src/gallium/drivers/panfrost/pan_varyings.c
index 0ec4d5633d2..52496aa26d7 100644
--- a/src/gallium/drivers/panfrost/pan_varyings.c
+++ b/src/gallium/drivers/panfrost/pan_varyings.c
@@ -25,6 +25,7 @@
#include "pan_bo.h"
#include "pan_context.h"
+#include "pan_format.h"
#include "util/u_prim.h"
static mali_ptr