intel: reorder base program key.
authorDave Airlie <airlied@gmail.com>
Wed, 2 Jun 2021 02:24:37 +0000 (12:24 +1000)
committerDave Airlie <airlied@gmail.com>
Sun, 13 Jun 2021 20:05:17 +0000 (06:05 +1000)
This gets hashed a lot, this reduces the size of this, and the other
keys by a small amount

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11146>

src/intel/compiler/brw_compiler.h

index afb3a61..3009161 100644 (file)
@@ -232,10 +232,8 @@ struct brw_base_prog_key {
    unsigned program_string_id;
 
    enum brw_subgroup_size_type subgroup_size_type;
-
-   struct brw_sampler_prog_key_data tex;
-
    bool robust_buffer_access;
+   struct brw_sampler_prog_key_data tex;
 };
 
 /**