From 56541d356ddc56fda5a04f199abd1d968d5b9551 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 6 Feb 2017 14:29:30 -0800 Subject: [PATCH] vc4: Replace a couple of magic numbers with #define usage. --- src/gallium/drivers/vc4/vc4_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. * -- 2.30.2