etnaviv: Don't over-pad compressed textures
authorWladimir J. van der Laan <laanwj@gmail.com>
Thu, 2 Nov 2017 15:08:42 +0000 (16:08 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 6 Nov 2017 20:31:20 +0000 (21:31 +0100)
commit96463614a30589d30c81eb33f559d633dc937eae
tree8e12803a5ac76c1c4c9d4c7a96007983e76db314
parent93ba3f29bbfd996dea5ecd053501800c11fc7f1c
etnaviv: Don't over-pad compressed textures

HALIGN_FOUR/SIXTEEN has no meaning for compressed textures, and we can't
render to them anyway. So use the tightest possible packing. This
avoids bugs with non-power-of-two block sizes.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c