]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/radeon/evergreen_cs: lower evergreen_surface_check_linear_aligned restriction
authorPatrick Lerda <patrick9876@free.fr>
Tue, 10 Jun 2025 19:12:23 +0000 (21:12 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:03:11 +0000 (10:03 -0400)
This change removes the restriction when palign=64 and nbx=32.
This makes two piglit tests working. This is discussed on the
thread linked below.

Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9056
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen_cs.c

index 7d00096fc9155bea5b96318d696c4f91416f02bc..266c577331369d87e03351b76d10bcb03de886dd 100644 (file)
@@ -211,7 +211,7 @@ static int evergreen_surface_check_linear_aligned(struct radeon_cs_parser *p,
        surf->base_align = track->group_size;
        surf->palign = palign;
        surf->halign = 1;
-       if (surf->nbx & (palign - 1)) {
+       if ((surf->nbx & (palign - 1)) && !(palign == 64 && surf->nbx == 32)) {
                if (prefix) {
                        dev_warn(p->dev, "%s:%d %s pitch %d invalid must be aligned with %d\n",
                                 __func__, __LINE__, prefix, surf->nbx, palign);