diff options
author | Wladimir J. van der Laan <[email protected]> | 2017-09-30 10:11:32 +0200 |
---|---|---|
committer | Lucas Stach <[email protected]> | 2017-10-12 16:03:26 +0200 |
commit | 78ade659569ee6fe9bd244170956139f19dd8c6c (patch) | |
tree | ffcba1f85f30fc623932ef2105c427056931a3ec /src/gallium/drivers/etnaviv/etnaviv_rs.h | |
parent | 3ba5a467a56c296490e641548cbb140de0083d03 (diff) |
etnaviv: Do GC3000 resolve-in-place when possible
If an RS blit is done with source exactly the same as destination, and
the hardware supports this, do an in-place resolve. This only fills in
tiles that have not been rendered to using information from the TS.
This is the same as the blob does and potentially saves significant
bandwidth when doing i.MX6qp scanout using PRE, and when rendering to
textures (though here using sampler TS would be even better).
Signed-off-by: Wladimir J. van der Laan <[email protected]>
Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_rs.h')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_rs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.h b/src/gallium/drivers/etnaviv/etnaviv_rs.h index ec5b659ccd4..171d3fa0095 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_rs.h +++ b/src/gallium/drivers/etnaviv/etnaviv_rs.h @@ -43,6 +43,7 @@ struct rs_state { struct etna_bo *source; uint32_t source_offset; uint32_t source_stride; + uint32_t source_padded_width; /* total padded width (only needed for source) */ uint32_t source_padded_height; /* total padded height */ struct etna_bo *dest; uint32_t dest_offset; @@ -69,6 +70,7 @@ struct compiled_rs_state { uint32_t RS_FILL_VALUE[4]; uint32_t RS_EXTRA_CONFIG; uint32_t RS_PIPE_OFFSET[2]; + uint32_t RS_KICKER_INPLACE; /* Set if source is destination */ struct etna_reloc source[2]; struct etna_reloc dest[2]; |