Mesa (master): zink: change a memcmp==0 to !memcmp
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 8 17:46:58 UTC 2020
Module: Mesa
Branch: master
Commit: 0ce792b2e20daea441f52134b7d1d0d2245b32bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ce792b2e20daea441f52134b7d1d0d2245b32bd
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Dec 7 15:43:33 2020 -0500
zink: change a memcmp==0 to !memcmp
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7801>
---
src/gallium/drivers/zink/zink_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c
index 58b4479e648..f62f3317590 100644
--- a/src/gallium/drivers/zink/zink_program.c
+++ b/src/gallium/drivers/zink/zink_program.c
@@ -324,7 +324,7 @@ hash_gfx_pipeline_state(const void *key)
static bool
equals_gfx_pipeline_state(const void *a, const void *b)
{
- return memcmp(a, b, offsetof(struct zink_gfx_pipeline_state, hash)) == 0;
+ return !memcmp(a, b, offsetof(struct zink_gfx_pipeline_state, hash));
}
static void
More information about the mesa-commit
mailing list