Skip to content

Commit 2b4305e

Browse files
aratajewgfxbot
authored andcommitted
Fix debug configuration build failures and cleanup unnecessary code
Change-Id: I17332016958fe8eb97d14f16579f88e6cfcf0c5f
1 parent 15daace commit 2b4305e

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

IGC/AdaptorOCL/dllInterfaceCompute.cpp

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6565
#include "common/LLVMWarningsPush.hpp"
6666
#include "AdaptorOCL/SPIRV/SPIRVconsum.h"
6767
#include "common/LLVMWarningsPop.hpp"
68-
#include "AdaptorOCL/SPIRV/SPIRV-Tools/include/spirv-tools/libspirv.h"
6968
#include "AdaptorOCL/SPIRV/libSPIRV/SPIRVModule.h"
7069
#include "AdaptorOCL/SPIRV/libSPIRV/SPIRVValue.h"
7170
#endif
@@ -727,39 +726,6 @@ void DumpShaderFile(const char *pOutputFolder, const char * pBuffer, UINT buffer
727726
}
728727
}
729728

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
763729

764730
static bool TranslateBuildCM(const STB_TranslateInputArgs* pInputArgs,
765731
STB_TranslateOutputArgs* pOutputArgs,
@@ -811,15 +777,6 @@ bool TranslateBuild(
811777
{
812778
DumpShaderFile(pOutputFolder, (char *)pInputArgs->pInput, pInputArgs->InputSize, hash, ".spv");
813779

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
823780
}
824781

825782
DumpShaderFile(pOutputFolder, (char *)pInputArgs->pInternalOptions, pInputArgs->InternalOptionsSize, hash, "_internal_options.txt");

0 commit comments

Comments
 (0)