We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfad2ed commit 8522e8eCopy full SHA for 8522e8e
1 file changed
tools/offloader/offloader.cpp
@@ -128,7 +128,6 @@ int run() {
128
const StringRef Binary = PipelineDesc.Shaders[0].Shader->getBuffer();
129
if (APIToUse == GPUAPI::Unknown) {
130
if (Binary.starts_with("DXBC")) {
131
- // Maybe there is a better way to detect GPUAPI?
132
#ifdef __APPLE__
133
APIToUse = GPUAPI::Metal;
134
outs() << "Using Metal API\n";
@@ -140,9 +139,6 @@ int run() {
140
139
0x07230203) {
141
APIToUse = GPUAPI::Vulkan;
142
outs() << "Using Vulkan API\n";
143
- } else if (Binary.starts_with("MTLB")) {
144
- APIToUse = GPUAPI::Metal;
145
- outs() << "Using Metal API\n";
146
}
147
148
0 commit comments