clover: Remove target argument from compile_program_tgsi()
authorTom Stellard <thomas.stellard@amd.com>
Fri, 25 May 2012 12:15:02 +0000 (08:15 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 15:28:10 +0000 (11:28 -0400)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/compiler.hpp
src/gallium/state_trackers/clover/core/program.cpp
src/gallium/state_trackers/clover/tgsi/compiler.cpp

index a3998d5e2fbc9596bc18c0dc88b39e10969f2922..686c7d83f835ecef68369799b0eb7a949d927b8e 100644 (file)
@@ -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
index 5ac9f93480eaad84e3c540bd4fbde0ee94dd7e4f..06ac2aff2ff004a542d2d918a68149a3e2ea21be 100644 (file)
@@ -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 });
 
index eb27db1aa768721d52a9027ed4f1d1c2a470c76b..a6c7fa3f23548826fe8005a97bbb54a7dbbb5d11 100644 (file)
@@ -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;