|
16 | 16 | #include <executorch/backends/vulkan/runtime/vk_api/Adapter.h> |
17 | 17 | #include <executorch/backends/vulkan/runtime/vk_api/Command.h> |
18 | 18 | #include <executorch/backends/vulkan/runtime/vk_api/Descriptor.h> |
| 19 | +#include <executorch/backends/vulkan/runtime/vk_api/DispatchGrid.h> |
19 | 20 | #include <executorch/backends/vulkan/runtime/vk_api/Fence.h> |
20 | 21 | #include <executorch/backends/vulkan/runtime/vk_api/QueryPool.h> |
21 | 22 | #include <executorch/backends/vulkan/runtime/vk_api/Runtime.h> |
@@ -151,7 +152,7 @@ class Context final { |
151 | 152 | void report_shader_dispatch_start( |
152 | 153 | const std::string& shader_name, |
153 | 154 | const utils::uvec3& global_wg_size, |
154 | | - const utils::WorkgroupSize& local_wg_size, |
| 155 | + const LocalWorkGroup& local_wg_size, |
155 | 156 | const uint32_t dispatch_id = UINT32_MAX); |
156 | 157 |
|
157 | 158 | /* |
@@ -190,13 +191,13 @@ class Context final { |
190 | 191 |
|
191 | 192 | vkapi::DescriptorSet get_descriptor_set( |
192 | 193 | const vkapi::ShaderInfo&, |
193 | | - const utils::WorkgroupSize&, |
| 194 | + const LocalWorkGroup&, |
194 | 195 | const vkapi::SpecVarList&, |
195 | 196 | const uint32_t push_constants_size); |
196 | 197 |
|
197 | 198 | inline vkapi::DescriptorSet get_descriptor_set( |
198 | 199 | const vkapi::ShaderInfo& shader_descriptor, |
199 | | - const utils::WorkgroupSize& local_work_group_size) { |
| 200 | + const LocalWorkGroup& local_work_group_size) { |
200 | 201 | return get_descriptor_set(shader_descriptor, local_work_group_size, {}, 0u); |
201 | 202 | } |
202 | 203 |
|
@@ -370,15 +371,15 @@ inline bool Context::submit_compute_job( |
370 | 371 | report_shader_dispatch_start( |
371 | 372 | shader.kernel_name, |
372 | 373 | global_work_group, |
373 | | - utils::WorkgroupSize(local_work_group_size), |
| 374 | + LocalWorkGroup(local_work_group_size), |
374 | 375 | dispatch_id); |
375 | 376 |
|
376 | 377 | // Factor out template parameter independent code to minimize code bloat. |
377 | 378 | // Note that push constants are not exposed yet via this API, therefore the |
378 | 379 | // push constants size is assumed to be 0. |
379 | 380 | vkapi::DescriptorSet descriptor_set = get_descriptor_set( |
380 | 381 | shader, |
381 | | - utils::WorkgroupSize(local_work_group_size), |
| 382 | + LocalWorkGroup(local_work_group_size), |
382 | 383 | specialization_constants, |
383 | 384 | 0u); |
384 | 385 |
|
|
0 commit comments