mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Only simulate multiple threads with config option enabled
This commit is contained in:
1 file changed
+5
-1
@@ -39,6 +39,7 @@ RDOC_CONFIG(rdcstr, Vulkan_Debug_PSDebugDumpDirPath, "",
|
||||
"Path to dump shader debugging generated SPIR-V files.");
|
||||
RDOC_CONFIG(bool, Vulkan_Debug_ShaderDebugLogging, false,
|
||||
"Output verbose debug logging messages when debugging shaders.");
|
||||
RDOC_EXTERN_CONFIG(bool, Vulkan_Hack_EnableGroupCaps);
|
||||
|
||||
// needed for old linux compilers
|
||||
namespace std
|
||||
@@ -5918,7 +5919,10 @@ ShaderDebugTrace *VulkanReplay::DebugComputeCommon(ShaderStage stage, uint32_t e
|
||||
if(shadRefl.patchData.threadScope & rdcspv::ThreadScope::Subgroup)
|
||||
numThreads = RDCMAX(numThreads, maxSubgroupSize);
|
||||
if(shadRefl.patchData.threadScope & rdcspv::ThreadScope::Workgroup)
|
||||
numThreads = RDCMAX(numThreads, threadDim[0] * threadDim[1] * threadDim[2]);
|
||||
{
|
||||
if(Vulkan_Hack_EnableGroupCaps())
|
||||
numThreads = RDCMAX(numThreads, threadDim[0] * threadDim[1] * threadDim[2]);
|
||||
}
|
||||
|
||||
apiWrapper->thread_builtins.resize(numThreads);
|
||||
apiWrapper->thread_props.resize(numThreads);
|
||||
|
||||
Reference in new issue
Block a user