File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
IGC/Compiler/Optimizer/OpenCLPasses/OpenCLPrintf Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -937,10 +937,14 @@ Instruction* OpenCLPrintfResolution::generateCastToPtr(SPrintfArgDescriptor* arg
937937 break ;
938938 }
939939
940- case IGC::SHADER_PRINTF_STRING_LITERAL:
941- castedType = Type::getInt32PtrTy (*m_context, ADDRESS_SPACE_GLOBAL);
940+ case IGC::SHADER_PRINTF_STRING_LITERAL: {
941+ ModuleMetaData* modMd = getAnalysis<MetaDataUtilsWrapper>().getModuleMetaData ();
942+ if (IGC_IS_FLAG_ENABLED (EnableZEBinary) || modMd->compOpt .EnableZEBinary )
943+ castedType = m_ptrSizeIntType->getPointerTo (ADDRESS_SPACE_GLOBAL);
944+ else
945+ castedType = Type::getInt32PtrTy (*m_context, ADDRESS_SPACE_GLOBAL);
942946 break ;
943-
947+ }
944948 case IGC::SHADER_PRINTF_POINTER:
945949 castedType = m_ptrSizeIntType->getPointerTo (ADDRESS_SPACE_GLOBAL);
946950 break ;
You can’t perform that action at this time.
0 commit comments