radeonsi: add a workaround for GFX9 hang with init_config alignment
authorMarek Olšák <marek.olsak@amd.com>
Fri, 9 Mar 2018 21:25:42 +0000 (16:25 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 9 Mar 2018 21:28:29 +0000 (16:28 -0500)
Fixes: 75c5d25f0f34cd702 "radeonsi: align command buffer starting address to fix some Raven hangs"
Cc: 17.3 18.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeonsi/si_pm4.c

index f4c41f5ffa575bf787fdb5d52db0f3cb778316c5..1fe2fb746046c94d6329a38072cf8cabb9d6d4dd 100644 (file)
@@ -166,10 +166,11 @@ void si_pm4_upload_indirect_buffer(struct si_context *sctx,
        assert(aligned_ndw <= SI_PM4_MAX_DW);
 
        r600_resource_reference(&state->indirect_buffer, NULL);
+       /* TODO: this hangs with 1024 or higher alignment on GFX9. */
        state->indirect_buffer = (struct r600_resource*)
                si_aligned_buffer_create(screen, 0,
                                         PIPE_USAGE_DEFAULT, aligned_ndw * 4,
-                                        sctx->screen->info.ib_start_alignment);
+                                        256);
        if (!state->indirect_buffer)
                return;