clover: Change program::build opts argument to std::string.
authorSerge Martin <edb+mesa@sigluy.net>
Tue, 17 May 2016 14:03:12 +0000 (16:03 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Jul 2016 03:34:34 +0000 (20:34 -0700)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/core/program.cpp
src/gallium/state_trackers/clover/core/program.hpp

index d8637876cd4f182939160b032315de462c36436a..2c511701e43fcd709157c4f84f379b1ccaefcaea 100644 (file)
@@ -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 });
index 183145e20738edfea75b95b0992df9c8c895d364..8a7be7a29c86f4bc88bbda75eb030f754635a826 100644 (file)
@@ -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;