diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2014-01-18 23:40:56 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2014-02-08 09:24:29 +0000 |
commit | 3e5bb71a47669a1f725713188c341feea1b3374e (patch) | |
tree | 43f8c042846f62c5be20cbe73e222156aefbf427 /src | |
parent | 41c465046fd4e97cc72fde3bf9eed6b82ffff881 (diff) |
set correct address for PE_PIPE_COLOR_ADDR[1]
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 <christian.gmeiner@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/etna_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |