File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5645,12 +5645,12 @@ namespace IGC
5645
5645
SaveOption (vISA_AutoGRFSelection, true );
5646
5646
}
5647
5647
5648
- if (lowerBoundGRF > 0 )
5648
+ if (lowerBoundGRF > 0 && vbuilder-> GetuInt32Option (vISA_MinGRFNum) == 0 )
5649
5649
{
5650
5650
SaveOption (vISA_MinGRFNum, lowerBoundGRF);
5651
5651
}
5652
5652
5653
- if (upperBoundGRF > 0 )
5653
+ if (upperBoundGRF > 0 && vbuilder-> GetuInt32Option (vISA_MaxGRFNum) == 0 )
5654
5654
{
5655
5655
SaveOption (vISA_MaxGRFNum, upperBoundGRF);
5656
5656
}
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ class CISA_IR_Builder : public VISABuilder {
76
76
VISA_BUILDER_API int Compile (const char *isaasmFileName,
77
77
bool emit_visa_only = false ) override ;
78
78
79
+ VISA_BUILDER_API int GetuInt32Option (vISAOptions option) override {
80
+ return m_options.getuInt32Option (option);
81
+ }
79
82
VISA_BUILDER_API void SetOption (vISAOptions option, bool val) override {
80
83
m_options.setOption (option, val);
81
84
}
Original file line number Diff line number Diff line change @@ -1321,6 +1321,7 @@ class VISABuilder {
1321
1321
VISA_BUILDER_API virtual int Compile (const char *isaasmFileName,
1322
1322
bool emit_visa_only = false ) = 0;
1323
1323
1324
+ VISA_BUILDER_API virtual int GetuInt32Option (vISAOptions option) = 0;
1324
1325
VISA_BUILDER_API virtual void SetOption (vISAOptions option, bool val) = 0;
1325
1326
VISA_BUILDER_API virtual void SetOption (vISAOptions option, uint32_t val) = 0;
1326
1327
VISA_BUILDER_API virtual void SetOption (vISAOptions option,
You can’t perform that action at this time.
0 commit comments