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

Author: Marek Olšák <marek.ol...@amd.com>
Date:   Tue Jun  6 16:26:49 2017 +0200

gallium/radeon: clean up a misleading statement from the old days

Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com>

---

 src/gallium/drivers/radeon/r600_texture.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_texture.c 
b/src/gallium/drivers/radeon/r600_texture.c
index 046fb906a2..d00f05bf84 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -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) {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to