From 10391da0d3b449014396d1a21bcec40bd97df944 Mon Sep 17 00:00:00 2001 From: DH Date: Tue, 2 Dec 2025 21:46:26 +0300 Subject: [PATCH] amdgpu/cache: do not allow 0 compute thread count --- rpcsx/gpu/Cache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcsx/gpu/Cache.cpp b/rpcsx/gpu/Cache.cpp index f6b2271e4..e4e29d479 100644 --- a/rpcsx/gpu/Cache.cpp +++ b/rpcsx/gpu/Cache.cpp @@ -2452,9 +2452,9 @@ Cache::ComputeTag::getShader(const Registers::ComputeConfig &pgm) { gcn::Environment env{ .vgprCount = pgm.rsrc1.getVGprCount(), .sgprCount = pgm.rsrc1.getSGprCount(), - .numThreadX = static_cast(pgm.numThreadX), - .numThreadY = static_cast(pgm.numThreadY), - .numThreadZ = static_cast(pgm.numThreadZ), + .numThreadX = std::max(pgm.numThreadX, 1), + .numThreadY = std::max(pgm.numThreadY, 1), + .numThreadZ = std::max(pgm.numThreadZ, 1), .userSgprs = std::span(pgm.userData.data(), pgm.rsrc2.userSgpr), };