From e39162fc522877f2716e2d8d001786a09c7f20dc Mon Sep 17 00:00:00 2001 From: nmzik Date: Tue, 18 Aug 2026 04:57:28 +0200 Subject: [PATCH] shader: remove validation from program cache key --- src/graphics/shader/shader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/graphics/shader/shader.cpp b/src/graphics/shader/shader.cpp index a75877f8f..e6e438531 100644 --- a/src/graphics/shader/shader.cpp +++ b/src/graphics/shader/shader.cpp @@ -117,12 +117,11 @@ struct ShaderStageProgramKey { uint64_t shader_hash = 0; ShaderId program_id; Config::ShaderOptimizationType optimization_type = Config::ShaderOptimizationType::None; - bool validation = false; bool operator==(const ShaderStageProgramKey& other) const { return stage == other.stage && lane_mask_mode == other.lane_mask_mode && shader_hash == other.shader_hash && program_id == other.program_id && - optimization_type == other.optimization_type && validation == other.validation; + optimization_type == other.optimization_type; } }; @@ -143,7 +142,6 @@ struct ShaderStageProgramKeyHash { mix(value); } mix(static_cast(key.optimization_type)); - mix(key.validation ? 1u : 0u); return hash; } }; @@ -917,7 +915,6 @@ static ShaderStageProgramKey MakeShaderStageProgramKey(ShaderType stage, uint64_ key.shader_hash = shader_hash; key.program_id = program_id; key.optimization_type = Config::GetShaderOptimizationType(); - key.validation = Config::ShaderValidationEnabled(); return key; }