summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-09-29 10:40:26 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2018-03-14 09:04:05 +0100
commit2c70f9d82c5ca18587693427767bce86b2c5c100 (patch)
tree1fe51f6e17198f050b95447fea72ad173d240d9f
parent051fd50743c954d3cb6c6007e5a6fdfab418b119 (diff)
radeonsi: add a warning message for DCC disable failure
Pointed out by Coverity. CID: 1418608
-rw-r--r--src/gallium/drivers/radeonsi/si_blit.c10
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,