Revert "GPU: Improve the do_static_compilation_ check coverage"

This reverts commit 162a24e05d.

Needs testing.
There are asserts triggering on startup.
This commit is contained in:
Miguel Pozo
2025-08-25 16:31:43 +02:00
parent 00abaa571a
commit 9f59a36181
3 changed files with 0 additions and 4 deletions

View File

@@ -46,7 +46,6 @@ struct GPUCodegenCreateInfo : ShaderCreateInfo {
GPUCodegenCreateInfo(const char *name) : ShaderCreateInfo(name), info_name_(name)
{
is_codegen_ = true;
/* Base class is always initialized first, so we need to update the name_ pointer here. */
name_ = info_name_.c_str();
};

View File

@@ -660,7 +660,6 @@ Shader *ShaderCompiler::compile(const shader::ShaderCreateInfo &info, bool is_ba
using namespace blender::gpu::shader;
const_cast<ShaderCreateInfo &>(info).finalize();
BLI_assert(info.do_static_compilation_ || info.is_codegen_);
TimePoint start_time;

View File

@@ -687,8 +687,6 @@ struct ShaderCreateInfo {
StringRefNull name_;
/** True if the shader is static and can be pre-compiled at compile time. */
bool do_static_compilation_ = false;
/** True if the shader comes from GPUCodegen. */
bool is_codegen_ = false;
/** If true, all additionally linked create info will be merged into this one. */
bool finalized_ = false;
/** If true, all resources will have an automatic location assigned. */