Fix: Debugging gpu tests in renderdoc
Step by step debugging of unit tests inside renderdoc didn't work as the debug information wasn't included when running unit tests. This should have been the case, but was broken when introducing `--debug_gpu_compile_shaders` startup parameter. Pull Request: https://projects.blender.org/blender/blender/pulls/147040
This commit is contained in:
@@ -37,8 +37,9 @@ class GPUOpenGLTest : public GPUTest {
|
||||
public:
|
||||
static void SetUpTestSuite()
|
||||
{
|
||||
GPUTest::SetUpTestSuite(
|
||||
GHOST_kDrawingContextTypeOpenGL, GPU_BACKEND_OPENGL, G_DEBUG_GPU | G_DEBUG_GPU_RENDERDOC);
|
||||
GPUTest::SetUpTestSuite(GHOST_kDrawingContextTypeOpenGL,
|
||||
GPU_BACKEND_OPENGL,
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_COMPILE_SHADERS | G_DEBUG_GPU_RENDERDOC);
|
||||
}
|
||||
static void TearDownTestSuite()
|
||||
{
|
||||
@@ -52,7 +53,8 @@ class GPUOpenGLWorkaroundsTest : public GPUTest {
|
||||
{
|
||||
GPUTest::SetUpTestSuite(GHOST_kDrawingContextTypeOpenGL,
|
||||
GPU_BACKEND_OPENGL,
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_FORCE_WORKAROUNDS);
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_COMPILE_SHADERS | G_DEBUG_GPU_RENDERDOC |
|
||||
G_DEBUG_GPU_FORCE_WORKAROUNDS);
|
||||
}
|
||||
static void TearDownTestSuite()
|
||||
{
|
||||
@@ -116,8 +118,9 @@ class GPUVulkanTest : public GPUTest {
|
||||
public:
|
||||
static void SetUpTestSuite()
|
||||
{
|
||||
GPUTest::SetUpTestSuite(
|
||||
GHOST_kDrawingContextTypeVulkan, GPU_BACKEND_VULKAN, G_DEBUG_GPU | G_DEBUG_GPU_RENDERDOC);
|
||||
GPUTest::SetUpTestSuite(GHOST_kDrawingContextTypeVulkan,
|
||||
GPU_BACKEND_VULKAN,
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_COMPILE_SHADERS | G_DEBUG_GPU_RENDERDOC);
|
||||
}
|
||||
static void TearDownTestSuite()
|
||||
{
|
||||
@@ -131,7 +134,8 @@ class GPUVulkanWorkaroundsTest : public GPUTest {
|
||||
{
|
||||
GPUTest::SetUpTestSuite(GHOST_kDrawingContextTypeVulkan,
|
||||
GPU_BACKEND_VULKAN,
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_RENDERDOC | G_DEBUG_GPU_FORCE_WORKAROUNDS);
|
||||
G_DEBUG_GPU | G_DEBUG_GPU_COMPILE_SHADERS | G_DEBUG_GPU_RENDERDOC |
|
||||
G_DEBUG_GPU_FORCE_WORKAROUNDS);
|
||||
}
|
||||
static void TearDownTestSuite()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user