[Mesa-dev] [PATCH 2/7] radeon/llvm/loader: convert hardcoded gpu name to option
Vadim Girlin
vadimgirlin at gmail.com
Fri May 25 02:26:02 PDT 2012
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
src/gallium/drivers/radeon/loader.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeon/loader.cpp b/src/gallium/drivers/radeon/loader.cpp
index 79348d5..3ea8cd8 100644
--- a/src/gallium/drivers/radeon/loader.cpp
+++ b/src/gallium/drivers/radeon/loader.cpp
@@ -15,7 +15,8 @@ using namespace llvm;
static cl::opt<std::string>
InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-"));
-
+static cl::opt<std::string>
+TargetGPUName("gpu", cl::desc("target gpu name"), cl::value_desc("gpu_name"));
int main(int argc, char ** argv)
{
@@ -30,5 +31,5 @@ int main(int argc, char ** argv)
Module * mod = M.get();
- radeon_llvm_compile(wrap(mod), &bytes, &byte_count, "redwood", 1);
+ radeon_llvm_compile(wrap(mod), &bytes, &byte_count, TargetGPUName.c_str(), 1);
}
--
1.7.10.2
More information about the mesa-dev
mailing list