summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pm4.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-03-09 16:25:42 -0500
committerMarek Olšák <[email protected]>2018-03-09 16:28:29 -0500
commit2bdb54bce77828ef20b730ad869b66c5889b5347 (patch)
tree8172bb9acb74a0e5025e5d7177f6b5fa403e03a1 /src/gallium/drivers/radeonsi/si_pm4.c
parente99212e97090e9ad321a6e54088e8c011912a93b (diff)
radeonsi: add a workaround for GFX9 hang with init_config alignment
Fixes: 75c5d25f0f34cd702 "radeonsi: align command buffer starting address to fix some Raven hangs" Cc: 17.3 18.0 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pm4.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_pm4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pm4.c b/src/gallium/drivers/radeonsi/si_pm4.c
index f4c41f5ffa5..1fe2fb74604 100644
--- a/src/gallium/drivers/radeonsi/si_pm4.c
+++ b/src/gallium/drivers/radeonsi/si_pm4.c
@@ -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;