Skip to content

Commit 94a5bbd

Browse files
authored
Allow program_module exp extension to use native format (#420)
Remove limitations from Module Program Extension that allowed only SPIR-V format. Extending it to allow native format. Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
1 parent d226e4d commit 94a5bbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/core/program.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ desc: "Module extended descriptor to support multiple input modules."
3030
details:
3131
- "Implementation must support $X_MODULE_PROGRAM_EXP_NAME extension"
3232
- "Modules support import and export linkage for functions and global variables."
33-
- "SPIR-V import and export linkage types are used. See SPIR-V specification for linkage details."
3433
- "pInputModules, pBuildFlags, and pConstants from $x_module_desc_t is ignored."
35-
- "Format in $x_module_desc_t needs to be set to $X_MODULE_FORMAT_IL_SPIRV."
34+
- "Format in $x_module_desc_t needs to be set to $X_MODULE_FORMAT_IL_SPIRV or $X_MODULE_FORMAT_NATIVE."
35+
- "All modules in the list must be of the same format and match the format specified in $x_module_desc_t."
3636
class: $xModule
3737
name: $x_module_program_exp_desc_t
3838
base: $x_base_desc_t
@@ -42,10 +42,10 @@ members:
4242
desc: "[in] Count of input modules"
4343
- type: "const size_t*"
4444
name: inputSizes
45-
desc: "[in][range(0, count)] sizes of each input IL module in pInputModules."
45+
desc: "[in][range(0, count)] sizes of each input module in pInputModules."
4646
- type: "const uint8_t**"
4747
name: pInputModules
48-
desc: "[in][range(0, count)] pointer to an array of IL (e.g. SPIR-V modules). Valid only for SPIR-V input."
48+
desc: "[in][range(0, count)] pointer to an array of binary modules in format specified as part of $x_module_desc_t."
4949
init: nullptr
5050
- type: "const char**"
5151
name: pBuildFlags

0 commit comments

Comments
 (0)