summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/tgsi
diff options
context:
space:
mode:
authorSerge Martin <[email protected]>2016-10-30 17:21:15 -0700
committerSerge Martin <[email protected]>2016-11-06 15:56:54 +0100
commitcc495055cdfe7e39002180d095d09fe4b6905eb9 (patch)
tree0ac1320ce58a9a14f5dcefae3e62c1dfa1b37196 /src/gallium/state_trackers/clover/tgsi
parent05fcc73f087fa2b8c447ec8c79c7bdab57d49faf (diff)
clover: Add CL_PROGRAM_BINARY_TYPE support (CL1.2).
v3 [Francisco Jerez]: Loosely based on Serge's v1 of this patch in order to avoid CL-specific enums in the clover module binary format. In addition to other changes made in v2: Represent the CL program binary type as the section type instead of adding a CL API-specific enum, check that the binary types of the input objects are valid during clLinkProgram(), pass section type as argument to build_module_library() instead of using separate function. Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/tgsi')
-rw-r--r--src/gallium/state_trackers/clover/tgsi/compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/tgsi/compiler.cpp b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
index 9bbd4541e9b..e165311fa41 100644
--- a/src/gallium/state_trackers/clover/tgsi/compiler.cpp
+++ b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
@@ -91,7 +91,7 @@ namespace {
unsigned sz = tgsi_num_tokens(prog) * sizeof(tgsi_token);
std::vector<char> data( (char *)prog, (char *)prog + sz );
- m.secs.push_back({ 0, module::section::text, sz, data });
+ m.secs.push_back({ 0, module::section::text_executable, sz, data });
}
}