mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 14:20:29 +01:00
anv: memcpy the thread dimentions only when they're on the CPU
Signed-off-by: Rohan Garg <rohan.garg@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26421>
This commit is contained in:
parent
d161e3c2e2
commit
9dd49e7a63
1 changed files with 1 additions and 2 deletions
|
|
@ -6178,6 +6178,7 @@ genX(cmd_buffer_dispatch_kernel)(struct anv_cmd_buffer *cmd_buffer,
|
|||
if (global_size != NULL) {
|
||||
for (unsigned i = 0; i < 3; i++)
|
||||
sysvals.num_work_groups[i] = global_size[i];
|
||||
memcpy(indirect_data.map, &sysvals, sizeof(sysvals));
|
||||
} else {
|
||||
struct anv_address sysvals_addr = {
|
||||
.bo = NULL, /* General state buffer is always 0. */
|
||||
|
|
@ -6187,8 +6188,6 @@ genX(cmd_buffer_dispatch_kernel)(struct anv_cmd_buffer *cmd_buffer,
|
|||
compute_store_indirect_params(cmd_buffer, sysvals_addr);
|
||||
}
|
||||
|
||||
memcpy(indirect_data.map, &sysvals, sizeof(sysvals));
|
||||
|
||||
void *args_map = indirect_data.map + sizeof(sysvals);
|
||||
for (unsigned i = 0; i < kernel->bin->bind_map.kernel_arg_count; i++) {
|
||||
struct brw_kernel_arg_desc *arg_desc =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue