From 580aff179cb6c8dde8f9ab1bb563ad51082c1ee5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 4 Feb 2025 15:54:58 -0500 Subject: [PATCH] libagx: use 64-bit multiply for image atomic calculation lets use the hw address mode. oops! Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/libagx/texture.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/libagx/texture.cl b/src/asahi/libagx/texture.cl index f67bbf7f6ff..6bd551c472f 100644 --- a/src/asahi/libagx/texture.cl +++ b/src/asahi/libagx/texture.cl @@ -200,7 +200,7 @@ libagx_image_texel_address(constant const struct agx_pbe_packed *ptr, return total_sa; else return (d.buffer + (is_msaa ? 0 : d.level_offset_sw)) + - (uint64_t)(total_sa * bytes_per_sample_B); + (uint64_t)total_sa * bytes_per_sample_B; } uint64_t