summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@collabora.com>2021-05-20 13:11:02 -0400
committerMarge Bot <eric+marge@anholt.net>2021-06-01 19:10:28 +0000
commit344db85bd538768a0985e9941b2e45f5c202b907 (patch)
treeaf96f3c86f8b282e90c0dc90b7d8c9151d9928ad
parent3a443daed06a55268e184f4f492e40e24bc85a99 (diff)
downloadmesa-344db85bd538768a0985e9941b2e45f5c202b907.tar.gz
mesa-344db85bd538768a0985e9941b2e45f5c202b907.tar.bz2
mesa-344db85bd538768a0985e9941b2e45f5c202b907.zip
panfrost: Shrink pan_draw_mode return type
Let gcc emit ldrb instead of ldr for the table. Found by perf, but total waste of time >_> Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index b638e8d23c6..6fb085e1842 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -131,7 +131,7 @@ panfrost_set_frontend_noop(struct pipe_context *pipe, bool enable)
#define DEFINE_CASE(c) case PIPE_PRIM_##c: return MALI_DRAW_MODE_##c;
-static int
+static uint8_t
pan_draw_mode(enum pipe_prim_type mode)
{
switch (mode) {