From: Eric Anholt Date: Mon, 6 Feb 2017 22:29:30 +0000 (-0800) Subject: vc4: Replace a couple of magic numbers with #define usage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56541d356ddc56fda5a04f199abd1d968d5b9551;p=mesa.git vc4: Replace a couple of magic numbers with #define usage. --- diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index 256f92d545a..efc37e849ee 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -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. *