From 3e5bb71a47669a1f725713188c341feea1b3374e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sat, 18 Jan 2014 23:40:56 +0000 Subject: set correct address for PE_PIPE_COLOR_ADDR[1] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is what the binary blob does: ADDR_I: 0x38910000 allocated: 0x73000 gcvSURF_RENDER_TARGET used for: TS.COLOR_SURFACE_BASE

PE.PIPE[0].COLOR_ADDR ADDR_27:0x3894b000 used for: PE.PIPE[1].COLOR_ADDR Signed-off-by: Christian Gmeiner --- src/driver/etna_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/etna_pipe.c b/src/driver/etna_pipe.c index eced3b7..96acf82 100644 --- a/src/driver/etna_pipe.c +++ b/src/driver/etna_pipe.c @@ -983,7 +983,7 @@ static void etna_pipe_set_framebuffer_state(struct pipe_context *pipe, else if (priv->ctx->conn->chip.pixel_pipes == 2) { cs->PE_PIPE_COLOR_ADDR[0] = etna_bo_gpu_address(bo) + cbuf->surf.offset; - cs->PE_PIPE_COLOR_ADDR[1] = etna_bo_gpu_address(bo) + cbuf->surf.offset; /* TODO */ + cs->PE_PIPE_COLOR_ADDR[1] = etna_bo_gpu_address(bo) + cbuf->surf.offset + (cbuf->surf.size / 2); } cs->PE_COLOR_STRIDE = cbuf->surf.stride; if(cbuf->surf.ts_size) -- cgit