From cc495055cdfe7e39002180d095d09fe4b6905eb9 Mon Sep 17 00:00:00 2001 From: Serge Martin Date: Sun, 30 Oct 2016 17:21:15 -0700 Subject: 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 --- src/gallium/state_trackers/clover/tgsi/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/clover/tgsi/compiler.cpp') 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 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 }); } } -- cgit v1.2.3