From: Tom Stellard Date: Fri, 25 May 2012 12:15:02 +0000 (-0400) Subject: clover: Remove target argument from compile_program_tgsi() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=741463e18d8235025de649210e7f88a1b6e7af5a;p=mesa.git clover: Remove target argument from compile_program_tgsi() Reviewed-by: Francisco Jerez --- 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 &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;