Module: Mesa
Branch: staging/18.1
Commit: 517c2f1e0f803bad048a7b088b508a5173343d4c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=517c2f1e0f803bad048a7b088b508a5173343d4c

Author: Marek Olšák <[email protected]>
Date:   Tue Aug 28 15:49:31 2018 -0400

r600: fix HTILE for NPOT textures with mipmapping

Cc: 18.1 18.2 <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
(cherry picked from commit da72b6296cfa5c5fa92d840d8a69c55df19d13f5)

---

 src/gallium/drivers/r600/r600_texture.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c 
b/src/gallium/drivers/r600/r600_texture.c
index c39c00c2e3..0c3489df29 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -774,8 +774,8 @@ static void r600_texture_get_htile_size(struct 
r600_common_screen *rscreen,
                return;
        }
 
-       width = align(rtex->resource.b.b.width0, cl_width * 8);
-       height = align(rtex->resource.b.b.height0, cl_height * 8);
+       width = align(rtex->surface.u.legacy.level[0].nblk_x, cl_width * 8);
+       height = align(rtex->surface.u.legacy.level[0].nblk_y, cl_height * 8);
 
        slice_elements = (width * height) / (8 * 8);
        slice_bytes = slice_elements * 4;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to