Skip to content

Commit

Permalink
Enable vector8 load/store by default for PVC.
Browse files Browse the repository at this point in the history
Enable vector8 load/store by default for PVC platform supporting this feature.
  • Loading branch information
lwesiers authored and igcbot committed Nov 26, 2024
1 parent 4c0dbeb commit f8a58d2
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 @@ -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));

Expand Down

0 comments on commit f8a58d2

Please sign in to comment.