File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ namespace IGCMetrics
6161 bool IGCMetricImpl::Enable ()
6262 {
6363#ifdef IGC_METRICS__PROTOBUF_ATTACHED
64- return isEnabled && IGC_GET_FLAG_VALUE (MetricsDumpEnable) > 0 ;
64+ return isEnabled;
6565#else
6666 return false ;
6767#endif
@@ -744,12 +744,12 @@ namespace IGCMetrics
744744
745745 if (cvar == nullptr )
746746 {
747- // If not found check in whole shader data
748- cvar = pDebugInfo-> m_pShader -> GetSymbol ((llvm::Value*)pVal, false ) ;
747+ // If not found, ignore
748+ continue ;
749749 }
750750
751- varInfo_m->set_size (cvar->GetSize ());
752- varInfo_m->set_type ((IGC_METRICS::VarInfo_VarType)cvar->GetType ());
751+ varInfo_m->set_size (cvar->GetSize ());
752+ varInfo_m->set_type ((IGC_METRICS::VarInfo_VarType)cvar->GetType ());
753753
754754 auto fillRegister = [&](unsigned int reg)
755755 {
You can’t perform that action at this time.
0 commit comments