Mesa (master): vc4: Replace a couple of magic numbers with #define usage.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Jun 30 19:27:39 UTC 2017
Module: Mesa
Branch: master
Commit: 56541d356ddc56fda5a04f199abd1d968d5b9551
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56541d356ddc56fda5a04f199abd1d968d5b9551
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 6 14:29:30 2017 -0800
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 256f92d545..efc37e849e 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.
*
More information about the mesa-commit
mailing list