@@ -280,8 +280,7 @@ namespace IGC
280
280
SSimplePushInfo simplePushInfoArr[g_c_maxNumberOfBufferPushed];
281
281
282
282
// Interesting constants for dynamic constant folding
283
- SConstantAddrValue* m_pInterestingConstants = nullptr ;
284
- uint m_InterestingConstantsSize = 0 ;
283
+ std::vector<SConstantAddrValue> m_pInterestingConstants;
285
284
};
286
285
287
286
struct SPixelShaderKernelProgram : SKernelProgram
@@ -864,11 +863,6 @@ namespace IGC
864
863
{
865
864
}
866
865
867
- ~VertexShaderContext ()
868
- {
869
- delete[] programOutput.gatherMap ;
870
- delete[] programOutput.m_pInterestingConstants ;
871
- }
872
866
};
873
867
874
868
class PixelShaderContext : public CodeGenContext
@@ -886,12 +880,6 @@ namespace IGC
886
880
programOutput ()
887
881
{
888
882
}
889
-
890
- ~PixelShaderContext ()
891
- {
892
- delete[] programOutput.gatherMap ;
893
- delete[] programOutput.m_pInterestingConstants ;
894
- }
895
883
};
896
884
897
885
class GeometryShaderContext : public CodeGenContext
@@ -909,12 +897,6 @@ namespace IGC
909
897
programOutput ()
910
898
{
911
899
}
912
-
913
- ~GeometryShaderContext ()
914
- {
915
- delete[] programOutput.gatherMap ;
916
- delete[] programOutput.m_pInterestingConstants ;
917
- }
918
900
};
919
901
920
902
struct SComputeShaderSecondCompileInput
@@ -958,12 +940,6 @@ namespace IGC
958
940
m_slmSize = 0 ;
959
941
}
960
942
961
- ~ComputeShaderContext ()
962
- {
963
- delete[] programOutput.gatherMap ;
964
- delete[] programOutput.m_pInterestingConstants ;
965
- }
966
-
967
943
/* * get shader's thread group size */
968
944
unsigned GetThreadGroupSize ();
969
945
unsigned GetSlmSizePerSubslice ();
@@ -991,12 +967,6 @@ namespace IGC
991
967
programOutput ()
992
968
{
993
969
}
994
-
995
- ~HullShaderContext ()
996
- {
997
- delete[] programOutput.gatherMap ;
998
- delete[] programOutput.m_pInterestingConstants ;
999
- }
1000
970
};
1001
971
1002
972
class DomainShaderContext : public CodeGenContext
@@ -1014,12 +984,6 @@ namespace IGC
1014
984
programOutput ()
1015
985
{
1016
986
}
1017
-
1018
- ~DomainShaderContext ()
1019
- {
1020
- delete[] programOutput.gatherMap ;
1021
- delete[] programOutput.m_pInterestingConstants ;
1022
- }
1023
987
};
1024
988
class OpenCLProgramContext : public CodeGenContext
1025
989
{
0 commit comments