Draw: Fix RenderDoc compatibility (Windows+Nvidia) #109214
|
@ -264,6 +264,13 @@ static void drw_deferred_shader_add(GPUMaterial *mat, bool deferred)
|
|||
deferred = false;
|
||||
}
|
||||
|
||||
/* Avoid crashes with RenderDoc on Windows + Nvidia. */
|
||||
if (G.debug & G_DEBUG_GPU_RENDERDOC &&
|
||||
GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_OFFICIAL))
|
||||
|
||||
{
|
||||
deferred = false;
|
||||
}
|
||||
|
||||
if (!deferred) {
|
||||
DRW_deferred_shader_remove(mat);
|
||||
/* Shaders could already be compiling. Have to wait for compilation to finish. */
|
||||
|
|
Loading…
Reference in New Issue
Is this a windows only issue. I would assume that we should check on
GPU_OS_ANY
as the drivers between linux/windows are 'the same'. I am aware that renderdoc doesn't support multithreading so we might consider to do this for all platforms.Not sure. I don't have a working Linux installation on my desktop at the moment.
Doesn't AMD work just fine? Without this fix, Blender crashes when switching to EEVEE on Windows+Nvidia.