[Mesa-dev,36/47] clover/tgsi: Add stub link_program() function.

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

Details

Message ID 20160704005156.5703-37-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.
Reviewed-by: Serge Martin <edb+mesa@sigluy.net>
---
 src/gallium/state_trackers/clover/tgsi/compiler.cpp   | 7 +++++++
 src/gallium/state_trackers/clover/tgsi/invocation.hpp | 2 ++
 2 files changed, 9 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/gallium/state_trackers/clover/tgsi/compiler.cpp b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
index d96f7e1..e385a07 100644
--- a/src/gallium/state_trackers/clover/tgsi/compiler.cpp
+++ b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
@@ -111,3 +111,10 @@  clover::tgsi::compile_program(const std::string &source, std::string &r_log) {
 
    return m;
 }
+
+module
+clover::tgsi::link_program(const std::vector<module> &modules)
+{
+   assert(modules.size() == 1 && "Not implemented");
+   return modules[0];
+}
diff --git a/src/gallium/state_trackers/clover/tgsi/invocation.hpp b/src/gallium/state_trackers/clover/tgsi/invocation.hpp
index 0fa20c4..ae08461 100644
--- a/src/gallium/state_trackers/clover/tgsi/invocation.hpp
+++ b/src/gallium/state_trackers/clover/tgsi/invocation.hpp
@@ -29,6 +29,8 @@  namespace clover {
    namespace tgsi {
       module compile_program(const std::string &source,
                              std::string &r_log);
+
+      module link_program(const std::vector<module> &modules);
    }
 }