panfrost: Don't align framebuffer dims
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 15 Feb 2019 07:43:43 +0000 (07:43 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 15 Feb 2019 07:46:30 +0000 (07:46 +0000)
Fixes regressions with EGL clients

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c

index 6272578bd5f65cbc431a49561f8956c143e44574..39e51d94074e2407206d3606b0b1481a2e715806 100644 (file)
@@ -2286,8 +2286,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 = ALIGN(fb->width, 16);
-        ctx->pipe_framebuffer.height = ALIGN(fb->height, 16);
+        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;