projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a443da
)
panfrost: Shrink pan_draw_mode return type
author
Alyssa Rosenzweig
<alyssa@collabora.com>
Thu, 20 May 2021 17:11:02 +0000
(13:11 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 1 Jun 2021 19:10:28 +0000
(19:10 +0000)
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>
src/gallium/drivers/panfrost/pan_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/panfrost/pan_context.c
b/src/gallium/drivers/panfrost/pan_context.c
index
b638e8d
..
6fb085e
100644
(file)
--- 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
in
t
+static
uint8_
t
pan_draw_mode(enum pipe_prim_type mode)
{
switch (mode) {