Mesa (master): aco: Stub sections that don't have _WIN32 support
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 11:23:20 UTC 2020
Module: Mesa
Branch: master
Commit: 44f05d6b742b27fd063c7789ea4ee7f9d68f8d4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=44f05d6b742b27fd063c7789ea4ee7f9d68f8d4b
Author: James Park <jpark37 at lagfreegames.com>
Date: Thu Nov 26 22:09:15 2020 -0800
aco: Stub sections that don't have _WIN32 support
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7785>
---
src/amd/compiler/aco_print_asm.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/amd/compiler/aco_print_asm.cpp b/src/amd/compiler/aco_print_asm.cpp
index af12314bf3f..01c5bc4c59a 100644
--- a/src/amd/compiler/aco_print_asm.cpp
+++ b/src/amd/compiler/aco_print_asm.cpp
@@ -18,6 +18,9 @@ namespace {
bool print_asm_gfx6_gfx7(Program *program, std::vector<uint32_t>& binary,
FILE *output)
{
+#ifdef _WIN32
+ return true;
+#else
char path[] = "/tmp/fileXXXXXX";
char line[2048], command[128];
const char *gpu_type;
@@ -90,6 +93,7 @@ fail:
close(fd);
unlink(path);
return true;
+#endif
}
std::pair<bool, size_t> disasm_instr(chip_class chip, LLVMDisasmContextRef disasm,
More information about the mesa-commit
mailing list