vc4: Replace a couple of magic numbers with #define usage.
authorEric Anholt <eric@anholt.net>
Mon, 6 Feb 2017 22:29:30 +0000 (14:29 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 30 Jun 2017 19:25:45 +0000 (12:25 -0700)
src/gallium/drivers/vc4/vc4_context.h

index 256f92d545a8b58d01a84c5b81ad431bcfe9d8f5..efc37e849ee968daa3e710e3ce101f2686cdb483 100644 (file)
@@ -384,7 +384,7 @@ struct vc4_rasterizer_state {
         struct pipe_rasterizer_state base;
 
         /* VC4_CONFIGURATION_BITS */
-        uint8_t config_bits[3];
+        uint8_t config_bits[V3D21_CONFIGURATION_BITS_length];
 
         struct PACKED {
                 uint8_t depth_offset[V3D21_DEPTH_OFFSET_length];
@@ -397,7 +397,7 @@ struct vc4_depth_stencil_alpha_state {
         struct pipe_depth_stencil_alpha_state base;
 
         /* VC4_CONFIGURATION_BITS */
-        uint8_t config_bits[3];
+        uint8_t config_bits[V3D21_CONFIGURATION_BITS_length];
 
         /** Uniforms for stencil state.
          *