nv50/ir/nir: fix smem size
authorKarol Herbst <kherbst@redhat.com>
Fri, 14 Aug 2020 21:00:17 +0000 (23:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 15 Aug 2020 10:59:39 +0000 (10:59 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6325>

src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

index 4475d7cf8069e419463702120ccb2b52e3d83cf0..b4dbbe1af660d7b7f686d00d9daae93ec5ac6f44 100644 (file)
@@ -1256,7 +1256,7 @@ Converter::parseNIR()
       info->prop.cp.numThreads[0] = nir->info.cs.local_size[0];
       info->prop.cp.numThreads[1] = nir->info.cs.local_size[1];
       info->prop.cp.numThreads[2] = nir->info.cs.local_size[2];
-      info->bin.smemSize = nir->info.cs.shared_size;
+      info->bin.smemSize += nir->info.cs.shared_size;
       break;
    case Program::TYPE_FRAGMENT:
       info->prop.fp.earlyFragTests = nir->info.fs.early_fragment_tests;