gallium/radeon: clean up a misleading statement from the old days
authorMarek Olšák <marek.olsak@amd.com>
Tue, 6 Jun 2017 14:26:49 +0000 (16:26 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2017 17:38:43 +0000 (19:38 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 046fb906a2f35ea88c5fe88125ea5a48327f272b..d00f05bf8460ca2dbc0ee6b7ba68686380f0c24a 100644 (file)
@@ -240,10 +240,7 @@ static int r600_init_surface(struct r600_common_screen *rscreen,
                bpe = 4; /* stencil is allocated separately on evergreen */
        } else {
                bpe = util_format_get_blocksize(ptex->format);
-               /* align byte per element on dword */
-               if (bpe == 3) {
-                       bpe = 4;
-               }
+               assert(util_is_power_of_two(bpe));
        }
 
        if (!is_flushed_depth && is_depth) {