Commit bbd7ebc3 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

panfrost: Remove framebuffer size restriction

Previously, we had artificially limited the framebuffer size to
2048x1280 to workaround a bug in old versions of Panfrost. This bug is
no longer present; the workaround, however, causes substantial issues
when paired with a larger display, like Kevin's native Hi-DPI beauty.
parent f5d96dcf
......@@ -2326,8 +2326,8 @@ panfrost_set_framebuffer_state(struct pipe_context *pctx,
ctx->pipe_framebuffer.nr_cbufs = fb->nr_cbufs;
ctx->pipe_framebuffer.samples = fb->samples;
ctx->pipe_framebuffer.layers = fb->layers;
ctx->pipe_framebuffer.width = MIN2(fb->width, 2048);
ctx->pipe_framebuffer.height = MIN2(fb->height, 1280);
ctx->pipe_framebuffer.width = fb->width;
ctx->pipe_framebuffer.height = fb->height;
for (int i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
struct pipe_surface *cb = i < fb->nr_cbufs ? fb->cbufs[i] : NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment