Skip to content

Commit f8a58d2

Browse files
lwesiersigcbot
authored andcommitted
Enable vector8 load/store by default for PVC.
Enable vector8 load/store by default for PVC platform supporting this feature.
1 parent 4c0dbeb commit f8a58d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,8 @@ void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSignature
765765

766766
bool AllowVector8LoadStore =
767767
IGC_IS_FLAG_ENABLED(EnableVector8LoadStore) ||
768-
((ctx.type == ShaderType::RAYTRACING_SHADER || ctx.hasSyncRTCalls()) && ctx.platform.supports8DWLSCMessage());
768+
((ctx.type == ShaderType::RAYTRACING_SHADER || ctx.hasSyncRTCalls()) && ctx.platform.supports8DWLSCMessage()) ||
769+
ctx.platform.getPlatformInfo().eProductFamily == IGFX_PVC;
769770

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

0 commit comments

Comments
 (0)