From f8a58d2c46d42131c8c0b6bf2d985cfa997c5bf6 Mon Sep 17 00:00:00 2001 From: "Wesierski, Lukasz" Date: Tue, 26 Nov 2024 10:52:45 +0000 Subject: [PATCH] Enable vector8 load/store by default for PVC. Enable vector8 load/store by default for PVC platform supporting this feature. --- IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp b/IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp index 33025d4a6c92..c863cfb4cd5e 100644 --- a/IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp +++ b/IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp @@ -765,7 +765,8 @@ void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSignature bool AllowVector8LoadStore = IGC_IS_FLAG_ENABLED(EnableVector8LoadStore) || - ((ctx.type == ShaderType::RAYTRACING_SHADER || ctx.hasSyncRTCalls()) && ctx.platform.supports8DWLSCMessage()); + ((ctx.type == ShaderType::RAYTRACING_SHADER || ctx.hasSyncRTCalls()) && ctx.platform.supports8DWLSCMessage()) || + ctx.platform.getPlatformInfo().eProductFamily == IGFX_PVC; mpm.add(createMemOptPass(AllowNegativeSymPtrsForLoad, AllowVector8LoadStore));