From c83bbbd860f2d8dac06b30327b3d8278e9f7e816 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 21 Jun 2022 14:47:12 -0600 Subject: [PATCH] llvmpipe: add some const qualifiers in lp_rast_linear_fallback.c Signed-off-by: Brian Paul Reviewed-by: Dave Airlie Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c index bb4fc074260..0a253783205 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_linear_fallback.c @@ -57,28 +57,28 @@ #define STAMP_SIZE 4 -static unsigned left_mask_tab[STAMP_SIZE] = { +static const unsigned left_mask_tab[STAMP_SIZE] = { COLUMN0 | COLUMN1 | COLUMN2 | COLUMN3, COLUMN1 | COLUMN2 | COLUMN3, COLUMN2 | COLUMN3, COLUMN3, }; -static unsigned right_mask_tab[STAMP_SIZE] = { +static const unsigned right_mask_tab[STAMP_SIZE] = { COLUMN0, COLUMN0 | COLUMN1, COLUMN0 | COLUMN1 | COLUMN2, COLUMN0 | COLUMN1 | COLUMN2 | COLUMN3, }; -static unsigned top_mask_tab[STAMP_SIZE] = { +static const unsigned top_mask_tab[STAMP_SIZE] = { ROW0 | ROW1 | ROW2 | ROW3, ROW1 | ROW2 | ROW3, ROW2 | ROW3, ROW3, }; -static unsigned bottom_mask_tab[STAMP_SIZE] = { +static const unsigned bottom_mask_tab[STAMP_SIZE] = { ROW0, ROW0 | ROW1, ROW0 | ROW1 | ROW2,