Cycles: Metal readiness: Specify DeviceQueue::enqueue arg types

This patch adds new arg-type parameters to `DeviceQueue::enqueue` and its overrides. This is in preparation for the Metal backend which needs this information for correct argument encoding.

Ref T92212

Reviewed By: brecht

Maniphest Tasks: T92212

Differential Revision: https://developer.blender.org/D13357
This commit is contained in:
2021-11-29 14:49:53 +00:00
parent f9add2d63e
commit 98a5c924fc
13 changed files with 242 additions and 153 deletions

View File

@@ -477,10 +477,10 @@ void CUDADevice::reserve_local_memory(const uint kernel_features)
* still to make it faster. */
CUDADeviceQueue queue(this);
void *d_path_index = nullptr;
void *d_render_buffer = nullptr;
device_ptr d_path_index = 0;
device_ptr d_render_buffer = 0;
int d_work_size = 0;
void *args[] = {&d_path_index, &d_render_buffer, &d_work_size};
DeviceKernelArguments args(&d_path_index, &d_render_buffer, &d_work_size);
queue.init_execution();
queue.enqueue(test_kernel, 1, args);