diff options
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index f1c4f6d1e7..0d55ca963b 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -615,8 +615,14 @@ static void si_check_render_feedback_texture(struct si_context *sctx, } } - if (render_feedback) - si_texture_disable_dcc(&sctx->b, tex); + if (render_feedback) { + if (!si_texture_disable_dcc(&sctx->b, tex)) { + /* We know the texture has DCC, so disabling should + * only fail if it's imported. */ + fprintf(stderr, "radeonsi: failed to disable DCC for " + "render feedback\n"); + } + } } static void si_check_render_feedback_textures(struct si_context *sctx, |