turnip: do nothing on dispatch with zero total workgroups
Otherwise GPU hangs... Fixes vkd3d test "test_dispatch_zero_thread_groups" Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13227>
This commit is contained in:
committed by
Marge Bot
parent
1288000dc2
commit
127352457c
@@ -4483,6 +4483,10 @@ static void
|
||||
tu_dispatch(struct tu_cmd_buffer *cmd,
|
||||
const struct tu_dispatch_info *info)
|
||||
{
|
||||
if (!info->indirect &&
|
||||
(info->blocks[0] == 0 || info->blocks[1] == 0 || info->blocks[2] == 0))
|
||||
return;
|
||||
|
||||
struct tu_cs *cs = &cmd->cs;
|
||||
struct tu_pipeline *pipeline = cmd->state.compute_pipeline;
|
||||
struct tu_descriptor_state *descriptors_state =
|
||||
|
||||
Reference in New Issue
Block a user