a2xx has maximum viewport dimensions of 4096
Fixes:
6ae726b79988addc50c1ed149151a351d0343d9d ("freedreno: clamp scissor bounds")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8866>
swap(miny, maxy);
}
- const float max_dims = is_a3xx(ctx->screen) ? 4096.f : 16384.f;
+ const float max_dims = ctx->screen->gpu_id >= 400 ? 16384.f : 4096.f;
/* Clamp, convert to integer and round up the max bounds. */
scissor->minx = CLAMP(minx, 0.f, max_dims);