From f6301a772774ebd73df26053d783527e8d1a9918 Mon Sep 17 00:00:00 2001 From: M Henning Date: Sun, 21 Apr 2024 16:53:54 -0400 Subject: [PATCH] nak: Count GLOBAL_SIZE_OFFSET in bytes, not words This matches what nvk_mme_dispatch_indirect expects Fixes: 16f2249a ("nvk: Use the NAK helpers to fill QMDs") Part-of: --- src/nouveau/compiler/nak/qmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak/qmd.rs b/src/nouveau/compiler/nak/qmd.rs index 9b5e8ddf6b7..03e9a241d24 100644 --- a/src/nouveau/compiler/nak/qmd.rs +++ b/src/nouveau/compiler/nak/qmd.rs @@ -68,7 +68,7 @@ macro_rules! qmd_impl_common { const GLOBAL_SIZE_OFFSET: usize = { let w = paste! {$c::[<$s _CTA_RASTER_WIDTH>]}; assert!(w.end == w.start + 32); - w.start / 32 + w.start / 8 }; fn set_global_size(&mut self, width: u32, height: u32, depth: u32) {