radeonsi: remove the "display_dcc_offset == 0" assertion
authorMarek Olšák <marek.olsak@amd.com>
Thu, 2 Jan 2020 19:10:46 +0000 (14:10 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 3 Jan 2020 20:07:19 +0000 (15:07 -0500)
I think it's not needed.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_texture.c

index 6fe632187607c6aa66f9b02600fa766da21dfd6a..34a1624caed4bce924b55844d862d0f456660c42 100644 (file)
@@ -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);