Skip to content

Commit

Permalink
Enable vector8 load/store by default.
Browse files Browse the repository at this point in the history
Enable vector8 load/store by default to all platforms supporting this feature on OCL path.
  • Loading branch information
lwesiers authored and igcbot committed Dec 19, 2024
1 parent 742e864 commit a4ccf49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,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.platform.getPlatformInfo().eProductFamily == IGFX_PVC;
(ctx.platform.GetPlatformFamily() == IGFX_XE_HPC_CORE && ctx.platform.supports8DWLSCMessage() &&
ctx.type == ShaderType::OPENCL_SHADER);

mpm.add(createMemOptPass(AllowNegativeSymPtrsForLoad, AllowVector8LoadStore));

Expand Down

0 comments on commit a4ccf49

Please sign in to comment.