gallium/cso_hash: pack cso_node better
authorMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jan 2020 01:17:32 +0000 (20:17 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 00:53:45 +0000 (00:53 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>

src/gallium/auxiliary/cso_cache/cso_hash.h

index f50d69d47ab4db1ad44ee91743815358ba47cefe..c2343334de83eaf9060dfc8b15a6188c7eb08224 100644 (file)
@@ -53,8 +53,8 @@ extern "C" {
 
 struct cso_node {
    struct cso_node *next;
-   unsigned key;
    void *value;
+   unsigned key;
 };
 
 struct cso_hash_iter {