@@ -778,30 +778,65 @@ class VISAKernelImpl : public VISAFunction
778
778
int numMsgSpecificOpnds,
779
779
VISA_RawOpnd ** opndArray) override ;
780
780
781
- VISA_BUILDER_API int AppendVISA3dInfo (VISASampler3DSubOpCode subOpcode, VISA_EMask_Ctrl emask, VISA_Exec_Size executionSize, VISAChannelMask srcChannel, VISA_StateOpndHandle *surface, VISA_RawOpnd *lod, VISA_RawOpnd *dst) override ;
781
+ VISA_BUILDER_API int AppendVISA3dInfo (
782
+ VISASampler3DSubOpCode subOpcode,
783
+ VISA_EMask_Ctrl emask,
784
+ VISA_Exec_Size executionSize,
785
+ VISAChannelMask srcChannel,
786
+ VISA_StateOpndHandle *surface,
787
+ VISA_RawOpnd *lod,
788
+ VISA_RawOpnd *dst) override ;
782
789
783
790
VISA_BUILDER_API int AppendVISA3dRTWrite (
784
- VISA_PredOpnd *pred, VISA_EMask_Ctrl emask, VISA_Exec_Size executionSize, VISA_VectorOpnd* renderTargetIndex, vISA_RT_CONTROLS cntrls,
785
- VISA_StateOpndHandle *surface, VISA_RawOpnd *r1HeaderOpnd, VISA_VectorOpnd *sampleIndex,
786
- uint8_t numMsgSpecificOpnds, VISA_RawOpnd **opndArray) override ;
791
+ VISA_PredOpnd *pred,
792
+ VISA_EMask_Ctrl emask,
793
+ VISA_Exec_Size executionSize,
794
+ VISA_VectorOpnd* renderTargetIndex,
795
+ vISA_RT_CONTROLS cntrls,
796
+ VISA_StateOpndHandle *surface,
797
+ VISA_RawOpnd *r1HeaderOpnd,
798
+ VISA_VectorOpnd *sampleIndex,
799
+ uint8_t numMsgSpecificOpnds,
800
+ VISA_RawOpnd **opndArray) override ;
787
801
788
802
VISA_BUILDER_API int AppendVISA3dRTWriteCPS (
789
- VISA_PredOpnd *pred, VISA_EMask_Ctrl emask, VISA_Exec_Size executionSize, VISA_VectorOpnd* renderTargetIndex, vISA_RT_CONTROLS cntrls,
790
- VISA_StateOpndHandle *surface, VISA_RawOpnd *r1HeaderOpnd, VISA_VectorOpnd *sampleIndex,
791
- VISA_VectorOpnd *cPSCounter, uint8_t numMsgSpecificOpnds, VISA_RawOpnd **opndArray) override ;
803
+ VISA_PredOpnd *pred,
804
+ VISA_EMask_Ctrl emask,
805
+ VISA_Exec_Size executionSize,
806
+ VISA_VectorOpnd* renderTargetIndex,
807
+ vISA_RT_CONTROLS cntrls,
808
+ VISA_StateOpndHandle *surface,
809
+ VISA_RawOpnd *r1HeaderOpnd,
810
+ VISA_VectorOpnd *sampleIndex,
811
+ VISA_VectorOpnd *cPSCounter,
812
+ uint8_t numMsgSpecificOpnds,
813
+ VISA_RawOpnd **opndArray) override ;
792
814
793
815
VISA_BUILDER_API int AppendVISA3dURBWrite (
794
- VISA_PredOpnd *pred, VISA_EMask_Ctrl emask,
795
- VISA_Exec_Size executionSize, unsigned char numberOutputParams,
796
- VISA_RawOpnd *channelMask, unsigned short globalOffset, VISA_RawOpnd *URBHandle,
797
- VISA_RawOpnd *perSLotOffset, VISA_RawOpnd *vertexData) override ;
816
+ VISA_PredOpnd *pred,
817
+ VISA_EMask_Ctrl emask,
818
+ VISA_Exec_Size executionSize,
819
+ unsigned char numberOutputParams,
820
+ VISA_RawOpnd *channelMask,
821
+ unsigned short globalOffset,
822
+ VISA_RawOpnd *URBHandle,
823
+ VISA_RawOpnd *perSLotOffset,
824
+ VISA_RawOpnd *vertexData) override ;
798
825
799
826
VISA_BUILDER_API int AppendVISA3dTypedAtomic (
800
- VISAAtomicOps subOp, bool is16Bit, VISA_PredOpnd *pred,
801
- VISA_EMask_Ctrl emask, VISA_Exec_Size executionSize,
802
- VISA_StateOpndHandle *surface, VISA_RawOpnd *u, VISA_RawOpnd *v,
803
- VISA_RawOpnd *r, VISA_RawOpnd *lod, VISA_RawOpnd *src0,
804
- VISA_RawOpnd *src1, VISA_RawOpnd *dst) override ;
827
+ VISAAtomicOps subOp,
828
+ bool is16Bit,
829
+ VISA_PredOpnd *pred,
830
+ VISA_EMask_Ctrl emask,
831
+ VISA_Exec_Size executionSize,
832
+ VISA_StateOpndHandle *surface,
833
+ VISA_RawOpnd *u,
834
+ VISA_RawOpnd *v,
835
+ VISA_RawOpnd *r,
836
+ VISA_RawOpnd *lod,
837
+ VISA_RawOpnd *src0,
838
+ VISA_RawOpnd *src1,
839
+ VISA_RawOpnd *dst) override ;
805
840
806
841
/* ********* APPEND 3D Instructions END ******************/
807
842
@@ -813,7 +848,8 @@ class VISAKernelImpl : public VISAFunction
813
848
VISA_BUILDER_API int GetErrorMessage (const char *&errorMsg) const override ;
814
849
VISA_BUILDER_API virtual int GetGenxDebugInfo (void *&buffer, unsigned int &size) const override ;
815
850
// / GetGenRelocEntryBuffer -- allocate and return a buffer of all GenRelocEntry that are created by vISA
816
- VISA_BUILDER_API int GetGenRelocEntryBuffer (void *&buffer, unsigned int &byteSize, unsigned int &numEntries) override ;
851
+ VISA_BUILDER_API int GetGenRelocEntryBuffer (void *&buffer,
852
+ unsigned int &byteSize, unsigned int &numEntries) override ;
817
853
// / GetRelocations -- add vISA created relocations into given relocation list
818
854
// / This get the same information as GetGenRelocEntryBuffer, but in different foramt
819
855
VISA_BUILDER_API int GetRelocations (RelocListType &relocs) override ;
@@ -872,17 +908,35 @@ class VISAKernelImpl : public VISAFunction
872
908
873
909
int CreateVISAPredicateDstOperand (VISA_VectorOpnd *& opnd, VISA_PredVar *decl, uint32_t size);
874
910
875
- int CreateVISAAddressOperand (VISA_VectorOpnd *&opnd, VISA_AddrVar *decl, unsigned int offset, unsigned int width, bool isDst);
911
+ int CreateVISAAddressOperand (
912
+ VISA_VectorOpnd *&opnd,
913
+ VISA_AddrVar *decl,
914
+ unsigned int offset,
915
+ unsigned int width,
916
+ bool isDst);
876
917
877
- int CreateVISAPredicateOperandvISA (VISA_PredOpnd *& opnd, VISA_PredVar *decl, VISA_PREDICATE_STATE state, VISA_PREDICATE_CONTROL cntrl);
918
+ int CreateVISAPredicateOperandvISA (
919
+ VISA_PredOpnd *& opnd,
920
+ VISA_PredVar *decl,
921
+ VISA_PREDICATE_STATE state,
922
+ VISA_PREDICATE_CONTROL cntrl);
878
923
879
924
int CreateGenNullRawOperand (VISA_RawOpnd *& opnd, bool isDst);
880
925
881
926
int CreateGenRawSrcOperand (VISA_RawOpnd *& cisa_opnd);
882
927
int CreateGenRawDstOperand (VISA_RawOpnd *& cisa_opnd);
883
928
884
- int CreateVISAIndirectGeneralOperand (VISA_VectorOpnd *& opnd, VISA_AddrVar *cisa_decl, VISA_Modifier mod, unsigned int addrOffset, unsigned short immediateOffset,
885
- unsigned short verticalStride, unsigned short width, unsigned short horizontalStride, VISA_Type type, bool isDst);
929
+ int CreateVISAIndirectGeneralOperand (
930
+ VISA_VectorOpnd *& opnd,
931
+ VISA_AddrVar *cisa_decl,
932
+ VISA_Modifier mod,
933
+ unsigned int addrOffset,
934
+ unsigned short immediateOffset,
935
+ unsigned short verticalStride,
936
+ unsigned short width,
937
+ unsigned short horizontalStride,
938
+ VISA_Type type,
939
+ bool isDst);
886
940
887
941
int AppendVISA3dSamplerMsgGeneric (ISA_Opcode opcode,
888
942
VISASampler3DSubOpCode subOpcode,
@@ -911,15 +965,32 @@ class VISAKernelImpl : public VISAFunction
911
965
912
966
int AddAttributeToVarGeneric (CISA_GEN_VAR *decl, const char * varName, unsigned int size, const void *val);
913
967
914
- int CreateStateVar (CISA_GEN_VAR *&decl, Common_ISA_Var_Class type, const char * name, unsigned int numberElements);
968
+ int CreateStateVar (
969
+ CISA_GEN_VAR *&decl,
970
+ Common_ISA_Var_Class type,
971
+ const char * name,
972
+ unsigned int numberElements);
915
973
916
974
int CreateVISAInputVar (CISA_GEN_VAR *decl, uint16_t offset, uint16_t size, uint8_t implicitKind);
917
975
918
- int CreateVISAAddressOfOperandGeneric (VISA_VectorOpnd *&cisa_opnd, CISA_GEN_VAR *decl, unsigned int offset);
919
-
920
- int CreateVISAStateOperand (VISA_VectorOpnd *& opnd, CISA_GEN_VAR *decl, Common_ISA_State_Opnd_Class opnd_class, uint8_t size, unsigned char offset, bool useAsDst);
976
+ int CreateVISAAddressOfOperandGeneric (
977
+ VISA_VectorOpnd *&cisa_opnd,
978
+ CISA_GEN_VAR *decl,
979
+ unsigned int offset);
980
+
981
+ int CreateVISAStateOperand (
982
+ VISA_VectorOpnd *& opnd,
983
+ CISA_GEN_VAR *decl,
984
+ Common_ISA_State_Opnd_Class opnd_class,
985
+ uint8_t size,
986
+ unsigned char offset,
987
+ bool useAsDst);
988
+
989
+ void setGenxBinaryBuffer (void *buffer, int size) {
990
+ m_genx_binary_buffer = static_cast <char *>(buffer);
991
+ m_genx_binary_size = size;
992
+ }
921
993
922
- void setGenxBinaryBuffer (void *buffer, int size) { m_genx_binary_buffer = static_cast <char *>(buffer); m_genx_binary_size = size; }
923
994
void setJitInfo (FINALIZER_INFO* jitInfo) { m_jitInfo = jitInfo; }
924
995
925
996
std::string getOutputAsmPath () const { return m_asmName; }
0 commit comments