Mesa (master): freedreno/a5xx: remove unused reference to gmem_alignw in layout code

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 20 18:45:12 UTC 2020


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

Author: Jonathan Marek <jonathan at marek.ca>
Date:   Tue Jan 21 17:08:54 2020 -0500

freedreno/a5xx: remove unused reference to gmem_alignw in layout code

Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4611>

---

 src/gallium/drivers/freedreno/a5xx/fd5_resource.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_resource.c b/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
index e4420e68151..e879b360963 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
@@ -47,9 +47,8 @@ static uint32_t
 setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format format)
 {
 	struct pipe_resource *prsc = &rsc->base;
-	struct fd_screen *screen = fd_screen(prsc->screen);
 	enum util_format_layout layout = util_format_description(format)->layout;
-	uint32_t pitchalign = screen->gmem_alignw;
+	uint32_t pitchalign;
 	uint32_t heightalign;
 	uint32_t level, size = 0;
 	uint32_t width = prsc->width0;



More information about the mesa-commit mailing list