summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-02-06 14:29:30 -0800
committerEric Anholt <[email protected]>2017-06-30 12:25:45 -0700
commit56541d356ddc56fda5a04f199abd1d968d5b9551 (patch)
treedf0fa5661ace49720f19a18c986efacf8e808696 /src/gallium/drivers/vc4
parentf6c5c6b9be1a241c095af2da985c25b95ffbaa25 (diff)
vc4: Replace a couple of magic numbers with #define usage.
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.h4
1 files 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.
*