[Mesa-dev,40/47] clover: Change program::build opts argument to std::string.

Submitted by Francisco Jerez on July 4, 2016, 12:51 a.m.

Details

Message ID 20160704005156.5703-41-currojerez@riseup.net
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Francisco Jerez July 4, 2016, 12:51 a.m.
From: Serge Martin <edb+mesa@sigluy.net>

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
---
 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(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp
index d863787..2c51170 100644
--- a/src/gallium/state_trackers/clover/core/program.cpp
+++ b/src/gallium/state_trackers/clover/core/program.cpp
@@ -41,7 +41,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;
@@ -60,7 +60,7 @@  program::build(const ref_vector<device> &devs, const char *opts,
                            tgsi::compile_program(_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;