diff options
author | alan-baker <alanbaker@google.com> | 2019-07-23 08:32:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 08:32:36 -0400 |
commit | 1c7b905284129c4a9f2f735e08da6f53b4eb4d9b (patch) | |
tree | 860dfc404a066f9a37d6ca639afdebaea6a46359 /src/clspv_helper.cc | |
parent | d7fc00b52faa239546eefd1e74f9fd2e3b25b993 (diff) | |
download | amber-1c7b905284129c4a9f2f735e08da6f53b4eb4d9b.tar.gz |
Opencl set for kernel args (#589)
Fixes #428
* Adds parsing (and tests) for SET command in pipeline command:
* only for use with OPENCL-C shaders (errors out in other cases)
```
SET KERNEL ARG_NAME _name_ AS {datum_type} _value_
SET KERNEL ARG_NUMBER _number_ AS {datum_type} _value_
```
* Executor now invokes the pipeline to generate buffers for the PoD args
populated from SET commands
* Allow clustered pod args
* refactor opencl specific code in executor to its own loop
* Add end-to-end test
* Document SET command
Diffstat (limited to 'src/clspv_helper.cc')
-rw-r--r-- | src/clspv_helper.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/clspv_helper.cc b/src/clspv_helper.cc index e0d853e..c4ac35a 100644 --- a/src/clspv_helper.cc +++ b/src/clspv_helper.cc @@ -68,8 +68,6 @@ Result Compile(Pipeline::ShaderInfo* shader_info, if (entry.kernel_arg_data.arg_kind == clspv::ArgKind::Pod || entry.kernel_arg_data.arg_kind == clspv::ArgKind::PodUBO) { - if (entry.kernel_arg_data.pod_offset != 0) - return Result("Clustered PoD arguments are not currently supported"); descriptor_entry.pod_offset = entry.kernel_arg_data.pod_offset; descriptor_entry.pod_arg_size = entry.kernel_arg_data.pod_arg_size; } |