[Mesa-dev] [RFC] panfrost/midgard: Hack some bits to get things working on T720
Tomeu Vizoso
tomeu.vizoso at collabora.com
Wed Jun 12 07:38:58 UTC 2019
Any ideas on why these two changes get kmscube working on T720?
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
src/gallium/drivers/panfrost/pan_context.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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;
--
2.20.1
More information about the mesa-dev
mailing list