Commit e140281a authored by Patrick Lerda's avatar Patrick Lerda Committed by Alex Deucher
Browse files

drm/radeon/evergreen_cs: lower evergreen_surface_check_linear_aligned restriction

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: default avatarPatrick Lerda <patrick9876@free.fr>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6a117dc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);