st/mesa: decrease the size of st_fp_variant_key from 48 to 40 bytes
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 Nov 2019 01:57:22 +0000 (21:57 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Nov 2019 23:02:06 +0000 (18:02 -0500)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/mesa/state_tracker/st_program.h

index 830dd6a7ca57161e0a1219318fc1ef8becdf3fe0..90e06e9effb73a80f025333ecda0d383c7f6ba7b 100644 (file)
@@ -130,13 +130,13 @@ struct st_fp_variant_key
    /** for OpenGL 1.0 on modern hardware */
    GLuint lower_two_sided_color:1;
 
+   GLuint lower_flatshade:1;
+   enum compare_func lower_alpha_func:3;
+
    /** needed for ATI_fragment_shader */
    char texture_targets[MAX_NUM_FRAGMENT_REGISTERS_ATI];
 
    struct st_external_sampler_key external;
-
-   GLuint lower_flatshade:1;
-   enum compare_func lower_alpha_func:3;
 };