Facebook
From mareko, 11 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 307
  1. diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
  2. index d4d71a246b5..213ed9ffb7d 100644
  3. --- a/src/gallium/drivers/radeonsi/si_compute.c
  4. +++ b/src/gallium/drivers/radeonsi/si_compute.c
  5. @@ -1001,7 +1001,7 @@ static void si_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info
  6.        si_compute_resources_add_all_to_bo_list(sctx);
  7.  
  8.     /* Don't optimize any registers on certain CDNA chips, otherwise it would break. */
  9. -   if (sctx->family >= CHIP_GFX940 && !sctx->screen->info.has_graphics)
  10. +   if (sctx->has_graphics)
  11.        sctx->tracked_regs.other_reg_saved_mask = 0;
  12.  
  13.     /* First emit registers. */
  14.