Skip to content

Commit 8522e8e

Browse files
committed
Cleanup comment and removed dead code path
1 parent bfad2ed commit 8522e8e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tools/offloader/offloader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ int run() {
128128
const StringRef Binary = PipelineDesc.Shaders[0].Shader->getBuffer();
129129
if (APIToUse == GPUAPI::Unknown) {
130130
if (Binary.starts_with("DXBC")) {
131-
// Maybe there is a better way to detect GPUAPI?
132131
#ifdef __APPLE__
133132
APIToUse = GPUAPI::Metal;
134133
outs() << "Using Metal API\n";
@@ -140,9 +139,6 @@ int run() {
140139
0x07230203) {
141140
APIToUse = GPUAPI::Vulkan;
142141
outs() << "Using Vulkan API\n";
143-
} else if (Binary.starts_with("MTLB")) {
144-
APIToUse = GPUAPI::Metal;
145-
outs() << "Using Metal API\n";
146142
}
147143
}
148144

0 commit comments

Comments
 (0)