Commit 19b64663 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Continue

parent c465b10a
......@@ -1307,8 +1307,8 @@ trans_setup_framebuffer(struct panfrost_context *ctx, uint32_t *addr, int width,
size_t framebuffer_sz = ctx->stride * ctx->height;
/* XXX: Why are framebuffers offset bizarrely? TODO: figure out*/
int offset = ctx->stride - ctx->bytes_per_pixel * 256;
/* Unclear why framebuffers are offset like this */
int offset = (ctx->width - 256) * ctx->bytes_per_pixel;
if (addr) {
ctx->framebuffer.cpu = addr;
......
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