Mesa (master): radeonsi: remove the "display_dcc_offset == 0" assertion

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 3 20:08:43 UTC 2020


Module: Mesa
Branch: master
Commit: 66483ee0176393c150bef0c92c4233ef3d326468
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66483ee0176393c150bef0c92c4233ef3d326468

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Jan  2 14:10:46 2020 -0500

radeonsi: remove the "display_dcc_offset == 0" assertion

I think it's not needed.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>

---

 src/gallium/drivers/radeonsi/si_texture.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c
index 6fe63218760..34a1624caed 100644
--- a/src/gallium/drivers/radeonsi/si_texture.c
+++ b/src/gallium/drivers/radeonsi/si_texture.c
@@ -462,10 +462,8 @@ static void si_texture_zero_dcc_fields(struct si_texture *tex)
 static bool si_texture_discard_dcc(struct si_screen *sscreen,
 				   struct si_texture *tex)
 {
-	if (!si_can_disable_dcc(tex)) {
-		assert(tex->surface.display_dcc_offset == 0);
+	if (!si_can_disable_dcc(tex))
 		return false;
-	}
 
 	assert(tex->dcc_separate_buffer == NULL);
 




More information about the mesa-commit mailing list