RenderTest: Fix EEVEE Render Test

Panorama dicing test fails for EEVEE on legacy platforms. EEVEE creates a shader interface
that isn't compatible with the vulkan backend. This PR hides the check.

Check should be enabled again after EEVEE has been replaced by EEVEE-Next.
This PR also changes the behavior when checks are executed. It used to be
executed when blender was build with asserts. Now it is behind the --debug-gpu flag.

Pull Request: https://projects.blender.org/blender/blender/pulls/117992
This commit is contained in:
Jeroen Bakker
2024-02-19 08:07:53 +01:00
parent e3da060510
commit 2cb2d3944b

View File

@@ -12,6 +12,8 @@
#include "BLI_set.hh"
#include "BLI_string_ref.hh"
#include "BKE_global.hh"
#include "GPU_capabilities.h"
#include "GPU_context.h"
#include "GPU_platform.h"
@@ -270,7 +272,16 @@ std::string ShaderCreateInfo::check_error() const
}
}
#ifndef NDEBUG
if ((G.debug & G_DEBUG_GPU) == 0) {
return error;
}
/*
* The next check has been disabled. 'eevee_legacy_surface_common_iface' is known to fail.
* The check was added to validate if shader would be able to compile on Vulkan.
* TODO(jbakker): Enable the check after EEVEE is replaced by EEVEE-Next.
*/
#if 0
if (bool(this->builtins_ &
(BuiltinBits::BARYCENTRIC_COORD | BuiltinBits::VIEWPORT_INDEX | BuiltinBits::LAYER)))
{
@@ -282,6 +293,7 @@ std::string ShaderCreateInfo::check_error() const
}
}
}
#endif
if (!this->is_vulkan_compatible()) {
error += this->name_ +
@@ -298,7 +310,6 @@ std::string ShaderCreateInfo::check_error() const
}
}
}
#endif
return error;
}