@@ -7014,7 +7014,6 @@ void gtPinData::setGTPinInit(void* buffer)
70147014{
70157015 MUST_BE_TRUE (sizeof (gtpin::igc::igc_init_t ) <= 200 , " Check size of igc_init_t" );
70167016 gtpin_init = (gtpin::igc::igc_init_t *)buffer;
7017- gtpinInitFromL0 = false ;
70187017
70197018 if (gtpin_init->re_ra )
70207019 kernel.getOptions ()->setOption (vISA_ReRAPostSchedule, true );
@@ -7068,11 +7067,6 @@ unsigned int gtPinData::getPerThreadNextOff()
70687067
70697068void * gtPinData::getGTPinInfoBuffer (unsigned int &bufferSize)
70707069{
7071- if (!gtpinInitFromL0 && !kernel.hasGTPinInit ())
7072- {
7073- return nullptr ;
7074- }
7075-
70767070 gtpin::igc::igc_init_t t;
70777071 std::vector<unsigned char > buffer;
70787072 unsigned int numTokens = 0 ;
@@ -7082,53 +7076,26 @@ void* gtPinData::getGTPinInfoBuffer(unsigned int &bufferSize)
70827076 memset (&t, 0 , sizeof (t));
70837077
70847078 t.version = gtpin::igc::GTPIN_IGC_INTERFACE_VERSION;
7085- if (gtpinInitFromL0 )
7079+ if (gtpin_init-> grf_info )
70867080 {
7087- if (kernel.getOption (vISA_GetFreeGRFInfo))
7088- {
7089- if (!stackABI)
7090- t.grf_info = 1 ;
7091- numTokens++;
7092- }
7093-
7094- if (kernel.getOption (vISA_ReRAPostSchedule))
7095- {
7096- if (!stackABI)
7097- t.re_ra = 1 ;
7098- }
7099-
7100- if (kernel.getOptions ()->getOption (vISA_GenerateDebugInfo))
7101- t.srcline_mapping = 1 ;
7102-
7103- if (kernel.getOptions ()->getuInt32Option (vISA_GTPinScratchAreaSize) > 0 )
7104- {
7105- t.scratch_area_size = kernel.getOptions ()->getuInt32Option (vISA_GTPinScratchAreaSize);
7106- numTokens++;
7107- }
7081+ if (!stackABI)
7082+ t.grf_info = 1 ;
7083+ numTokens++;
71087084 }
7109- else
7110- {
7111- if (gtpin_init->grf_info )
7112- {
7113- if (!stackABI)
7114- t.grf_info = 1 ;
7115- numTokens++;
7116- }
71177085
7118- if (gtpin_init->re_ra )
7119- {
7120- if (!stackABI)
7121- t.re_ra = 1 ;
7122- }
7086+ if (gtpin_init->re_ra )
7087+ {
7088+ if (!stackABI)
7089+ t.re_ra = 1 ;
7090+ }
71237091
7124- if (gtpin_init->srcline_mapping && kernel.getOptions ()->getOption (vISA_GenerateDebugInfo))
7125- t.srcline_mapping = 1 ;
7092+ if (gtpin_init->srcline_mapping && kernel.getOptions ()->getOption (vISA_GenerateDebugInfo))
7093+ t.srcline_mapping = 1 ;
71267094
7127- if (gtpin_init->scratch_area_size > 0 )
7128- {
7129- t.scratch_area_size = gtpin_init->scratch_area_size ;
7130- numTokens++;
7131- }
7095+ if (gtpin_init->scratch_area_size > 0 )
7096+ {
7097+ t.scratch_area_size = gtpin_init->scratch_area_size ;
7098+ numTokens++;
71327099 }
71337100
71347101 // For payload offsets
0 commit comments