]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later
authorMaíra Canal <mcanal@igalia.com>
Sun, 14 Jul 2024 14:49:12 +0000 (11:49 -0300)
committerMaíra Canal <mcanal@igalia.com>
Mon, 15 Jul 2024 15:49:52 +0000 (12:49 -0300)
commit1fe1c66274fb80cc1ac42e0d38917d53adc7d7a3
tree2d55830af0cbff785341abfd60ca9b767b93b4c8
parent7c78fdbace0ff9bd2a2f1206182c054462b006af
drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later

`args->cfg[4]` is configured in Indirect Dispatch using the number of
batches. Currently, for all V3D tech versions, `args->cfg[4]` equals the
number of batches subtracted by 1. But, for V3D 7.1.6 and later, we must not
subtract 1 from the number of batches.

Implement the fix by checking the V3D tech version and revision.

Fixes several `dEQP-VK.synchronization*` CTS tests related to Indirect Dispatch.

Fixes: 18b8413b25b7 ("drm/v3d: Create a CPU job extension for a indirect CSD job")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240714145243.1223131-2-mcanal@igalia.com
drivers/gpu/drm/v3d/v3d_sched.c