Mesa (master): zink: move rp hash functions further up in file
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 18 16:51:45 UTC 2020
Module: Mesa
Branch: master
Commit: ec34b3f117a70b8ff348850a9aae40b73d94c06e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec34b3f117a70b8ff348850a9aae40b73d94c06e
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Dec 9 15:26:06 2020 -0500
zink: move rp hash functions further up in file
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8011>
---
src/gallium/drivers/zink/zink_context.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index f83cdcc8e65..f6dc4edc890 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -595,6 +595,18 @@ zink_set_clip_state(struct pipe_context *pctx,
{
}
+static uint32_t
+hash_render_pass_state(const void *key)
+{
+ return _mesa_hash_data(key, sizeof(struct zink_render_pass_state));
+}
+
+static bool
+equals_render_pass_state(const void *a, const void *b)
+{
+ return memcmp(a, b, sizeof(struct zink_render_pass_state)) == 0;
+}
+
static struct zink_render_pass *
get_render_pass(struct zink_context *ctx)
{
@@ -1038,18 +1050,6 @@ equals_gfx_program(const void *a, const void *b)
return memcmp(a, b, sizeof(struct zink_shader *) * (ZINK_SHADER_COUNT)) == 0;
}
-static uint32_t
-hash_render_pass_state(const void *key)
-{
- return _mesa_hash_data(key, sizeof(struct zink_render_pass_state));
-}
-
-static bool
-equals_render_pass_state(const void *a, const void *b)
-{
- return memcmp(a, b, sizeof(struct zink_render_pass_state)) == 0;
-}
-
static void
zink_flush(struct pipe_context *pctx,
struct pipe_fence_handle **pfence,
More information about the mesa-commit
mailing list