Mesa (master): gallium/cso_hash: pack cso_node better

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 28 01:10:26 UTC 2020


Module: Mesa
Branch: master
Commit: 505cd5f12b0ee7a5bac353bb53da6e78bc10513d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=505cd5f12b0ee7a5bac353bb53da6e78bc10513d

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Jan 21 20:17:32 2020 -0500

gallium/cso_hash: pack cso_node better

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>

---

 src/gallium/auxiliary/cso_cache/cso_hash.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.h b/src/gallium/auxiliary/cso_cache/cso_hash.h
index f50d69d47ab..c2343334de8 100644
--- a/src/gallium/auxiliary/cso_cache/cso_hash.h
+++ b/src/gallium/auxiliary/cso_cache/cso_hash.h
@@ -53,8 +53,8 @@ extern "C" {
 
 struct cso_node {
    struct cso_node *next;
-   unsigned key;
    void *value;
+   unsigned key;
 };
 
 struct cso_hash_iter {



More information about the mesa-commit mailing list