diff options
author | Icecream95 <[email protected]> | 2020-02-14 20:22:38 +1300 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-14 12:53:36 +0000 |
commit | f3490a141c8d562fc29e714c3735f2ae8e3c0512 (patch) | |
tree | 00a48949a663868ff23809b2c0e8e275ce27fa87 /src/gallium/drivers/panfrost/pan_context.h | |
parent | efda2cfcf96b1071c18800ff3f878fe627359e8a (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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3824>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h index 79d082da11f..fcfcafb135a 100644 --- a/src/gallium/drivers/panfrost/pan_context.h +++ b/src/gallium/drivers/panfrost/pan_context.h @@ -297,9 +297,6 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data); struct panfrost_transfer panfrost_vertex_tiler_job(struct panfrost_context *ctx, bool is_tiler); -unsigned -panfrost_get_default_swizzle(unsigned components); - void panfrost_flush( struct pipe_context *pipe, |