[RFC] panfrost/midgard: Hack some bits to get things working on T720

Submitted by Tomeu Vizoso on June 12, 2019, 7:38 a.m.

Details

Message ID 20190612073858.409-1-tomeu.vizoso@collabora.com
State New
Headers show
Series "panfrost/midgard: Hack some bits to get things working on T720" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Tomeu Vizoso June 12, 2019, 7:38 a.m.
Any ideas on why these two changes get kmscube working on T720?

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
 src/gallium/drivers/panfrost/pan_context.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index e20e8e8d5923..a1423c22e1fb 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -95,11 +95,14 @@  panfrost_emit_sfbd(struct panfrost_context *ctx)
                 .unknown_address_0 = ctx->scratchpad.gpu,
                 .unknown_address_1 = ctx->misc_0.gpu,
                 .unknown_address_2 = ctx->misc_0.gpu + 40960,
-                .tiler_flags = 0xf0,
+                .tiler_flags = 0xfff,
                 .tiler_heap_free = ctx->tiler_heap.gpu,
                 .tiler_heap_end = ctx->tiler_heap.gpu + ctx->tiler_heap.size,
         };
 
+        uint32_t *known_unknown = ((void*)ctx->misc_0.cpu + 40960);
+        *known_unknown = 0xa0000000;
+
         panfrost_set_framebuffer_resolution(&framebuffer, ctx->pipe_framebuffer.width, ctx->pipe_framebuffer.height);
 
         return framebuffer;

Comments