panfrost/mfbd: Zero out framebuffer_stride
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 15 Jul 2019 22:35:30 +0000 (15:35 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 16 Jul 2019 14:19:29 +0000 (07:19 -0700)
We don't know what this is, so let's not pretend we do.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_mfbd.c

index 728ed2f1604f4cecb7a50adf52bf0abaaf63ca5c..a35acc311bcf23a3153a784d29472380c0bd6d6f 100644 (file)
@@ -239,8 +239,9 @@ panfrost_mfbd_set_cbuf(
                 rt->afbc.stride = 0;
                 rt->afbc.unk = 0x30009;
 
-                /* TODO: Investigate shift */
-                rt->framebuffer_stride = stride << 1;
+                /* TODO: The blob sets this to something nonzero, but it's not
+                 * clear what/how to calculate/if it matters */
+                rt->framebuffer_stride = 0;
         } else {
                 fprintf(stderr, "Invalid render layout (cbuf)");
                 assert(0);