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

Francisco Jerez currojerez at riseup.net
Mon Jul 4 00:51:45 UTC 2016


Reviewed-by: Serge Martin <edb+mesa at 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(+)

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);
    }
 }
 
-- 
2.9.0



More information about the mesa-dev mailing list