freedreno/a5xx: remove unused reference to gmem_alignw in layout code
authorJonathan Marek <jonathan@marek.ca>
Tue, 21 Jan 2020 22:08:54 +0000 (17:08 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 18:24:28 +0000 (18:24 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4611>

src/gallium/drivers/freedreno/a5xx/fd5_resource.c

index e4420e681516f1e745452f215174baf41b2c4cb5..e879b3609633ff14fa1b1b4e3465348f0e7d6893 100644 (file)
@@ -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;