From 943d7b246ec05d1ea7404b196a69f8d0932dbb96 Mon Sep 17 00:00:00 2001 From: spencer-lunarg Date: Sun, 2 Nov 2025 21:24:42 -0500 Subject: [PATCH] llvmpipe: Fix warning casting 32-bit int to 8-bit Signed-off-by: spencer-lunarg Acked-by: Dave Airlie Part-of: --- src/gallium/drivers/llvmpipe/lp_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 67c12d5185b..04e7a91d1e6 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -530,7 +530,7 @@ lp_setup_try_clear_zs(struct lp_setup_context *setup, enum pipe_format format = setup->fb.zsbuf.format; const uint32_t zmask32 = (flags & PIPE_CLEAR_DEPTH) ? ~0U : 0U; - const uint8_t smask8 = (flags & PIPE_CLEAR_STENCIL) ? ~0U : 0U; + const uint8_t smask8 = (flags & PIPE_CLEAR_STENCIL) ? 0xFF : 0x00; uint64_t zsvalue = util_pack64_z_stencil(format, depth, stencil); uint64_t zsmask = util_pack64_mask_z_stencil(format, zmask32, smask8);