@@ -65,7 +65,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65
65
#include " common/LLVMWarningsPush.hpp"
66
66
#include " AdaptorOCL/SPIRV/SPIRVconsum.h"
67
67
#include " common/LLVMWarningsPop.hpp"
68
- #include " AdaptorOCL/SPIRV/SPIRV-Tools/include/spirv-tools/libspirv.h"
69
68
#include " AdaptorOCL/SPIRV/libSPIRV/SPIRVModule.h"
70
69
#include " AdaptorOCL/SPIRV/libSPIRV/SPIRVValue.h"
71
70
#endif
@@ -727,39 +726,6 @@ void DumpShaderFile(const char *pOutputFolder, const char * pBuffer, UINT buffer
727
726
}
728
727
}
729
728
730
- #if defined(IGC_SPIRV_ENABLED)
731
- // Disasseble SPIRV binary file using SPIRV-Tools library
732
- spv_result_t DisassembleSPIRV (
733
- spv_text* output,
734
- spv_diagnostic* diag,
735
- const char * inputBinary,
736
- const UINT inputSize,
737
- spv_target_env target_env,
738
- uint32_t options =
739
- SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES |
740
- SPV_BINARY_TO_TEXT_OPTION_INDENT |
741
- SPV_BINARY_TO_TEXT_OPTION_SHOW_BYTE_OFFSET)
742
- {
743
-
744
- spv_context context = spvContextCreate (target_env);
745
-
746
- // Disassemble to &text.
747
- // SPIRV binary files are all aligned to 4 bytes,
748
- // so we can safely pass it into the function.
749
- spv_result_t result =
750
- spvBinaryToText (
751
- context,
752
- reinterpret_cast <const uint32_t *>(inputBinary),
753
- inputSize/4 ,
754
- options,
755
- output,
756
- diag
757
- );
758
- spvContextDestroy (context);
759
-
760
- return result;
761
- }
762
- #endif
763
729
764
730
static bool TranslateBuildCM (const STB_TranslateInputArgs* pInputArgs,
765
731
STB_TranslateOutputArgs* pOutputArgs,
@@ -811,15 +777,6 @@ bool TranslateBuild(
811
777
{
812
778
DumpShaderFile (pOutputFolder, (char *)pInputArgs->pInput , pInputArgs->InputSize , hash, " .spv" );
813
779
814
- #if defined(IGC_SPIRV_ENABLED)
815
- spv_text spirv_text = nullptr ;
816
- spv_diagnostic diag = nullptr ;
817
- spv_result_t result = DisassembleSPIRV (&spirv_text, &diag, pInputArgs->pInput , pInputArgs->InputSize , SPV_ENV_UNIVERSAL_1_3);
818
- if (result == SPV_SUCCESS) {
819
- DumpShaderFile (pOutputFolder, spirv_text->str , spirv_text->length , hash, " .spvasm" );
820
- spvTextDestroy (spirv_text);
821
- }
822
- #endif
823
780
}
824
781
825
782
DumpShaderFile (pOutputFolder, (char *)pInputArgs->pInternalOptions , pInputArgs->InternalOptionsSize , hash, " _internal_options.txt" );
0 commit comments