[Mesa-dev] [PATCH v7 3/7] clover: program::build change opts to std::string
Serge Martin
edb+mesa at sigluy.net
Sat Feb 13 22:08:37 UTC 2016
---
src/gallium/state_trackers/clover/core/program.cpp | 4 ++--
src/gallium/state_trackers/clover/core/program.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp
index 6eebd9c..1549be7 100644
--- a/src/gallium/state_trackers/clover/core/program.cpp
+++ b/src/gallium/state_trackers/clover/core/program.cpp
@@ -40,7 +40,7 @@ program::program(clover::context &ctx,
}
void
-program::build(const ref_vector<device> &devs, const char *opts,
+program::build(const ref_vector<device> &devs, const std::string &opts,
const header_map &headers) {
if (has_source) {
_devices = devs;
@@ -59,7 +59,7 @@ program::build(const ref_vector<device> &devs, const char *opts,
compile_program_tgsi(_source, log) :
compile_program_llvm(_source, headers,
dev.ir_format(),
- dev.ir_target(), build_opts(dev),
+ dev.ir_target(), opts,
log));
_binaries.insert({ &dev, module });
_logs.insert({ &dev, log });
diff --git a/src/gallium/state_trackers/clover/core/program.hpp b/src/gallium/state_trackers/clover/core/program.hpp
index 183145e..8a7be7a 100644
--- a/src/gallium/state_trackers/clover/core/program.hpp
+++ b/src/gallium/state_trackers/clover/core/program.hpp
@@ -47,7 +47,7 @@ namespace clover {
program &
operator=(const program &prog) = delete;
- void build(const ref_vector<device> &devs, const char *opts,
+ void build(const ref_vector<device> &devs, const std::string &opts,
const header_map &headers = {});
const bool has_source;
--
2.5.0
More information about the mesa-dev
mailing list