From 344db85bd538768a0985e9941b2e45f5c202b907 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 20 May 2021 13:11:02 -0400 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index b638e8d..6fb085e 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) { -- 2.7.4