aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-25 08:15:02 -0400
committerTom Stellard <[email protected]>2012-06-01 11:28:10 -0400
commit741463e18d8235025de649210e7f88a1b6e7af5a (patch)
treede271e87c8ce0ffb98632be937a4fd2e8c7ab97d /src
parentd724190bce7a10becfb378cad7ef9886ee4d2c8c (diff)
clover: Remove target argument from compile_program_tgsi()
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/core/compiler.hpp3
-rw-r--r--src/gallium/state_trackers/clover/core/program.cpp2
-rw-r--r--src/gallium/state_trackers/clover/tgsi/compiler.cpp3
3 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/clover/core/compiler.hpp b/src/gallium/state_trackers/clover/core/compiler.hpp
index a3998d5e2fb..686c7d83f83 100644
--- a/src/gallium/state_trackers/clover/core/compiler.hpp
+++ b/src/gallium/state_trackers/clover/core/compiler.hpp
@@ -46,8 +46,7 @@ namespace clover {
module compile_program_llvm(const compat::string &source,
const compat::string &target);
- module compile_program_tgsi(const compat::string &source,
- const compat::string &target);
+ module compile_program_tgsi(const compat::string &source);
}
#endif
diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp
index 5ac9f93480e..06ac2aff2ff 100644
--- a/src/gallium/state_trackers/clover/core/program.cpp
+++ b/src/gallium/state_trackers/clover/core/program.cpp
@@ -48,7 +48,7 @@ _cl_program::build(const std::vector<clover::device *> &devs) {
for (auto dev : devs) {
try {
auto module = (dev->ir_target() == "tgsi" ?
- compile_program_tgsi(__source, dev->ir_target()) :
+ compile_program_tgsi(__source) :
compile_program_llvm(__source, dev->ir_target()));
__binaries.insert({ dev, module });
diff --git a/src/gallium/state_trackers/clover/tgsi/compiler.cpp b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
index eb27db1aa76..a6c7fa3f235 100644
--- a/src/gallium/state_trackers/clover/tgsi/compiler.cpp
+++ b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
@@ -88,8 +88,7 @@ namespace {
}
module
-clover::compile_program_tgsi(const compat::string &source,
- const compat::string &target) {
+clover::compile_program_tgsi(const compat::string &source) {
const char *body = source.find("COMP\n");
module m;