diff options
author | Rob Clark <[email protected]> | 2014-04-08 16:48:50 -0400 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2014-04-17 09:42:06 +0200 |
commit | a45ae814d1985bb9e72ba8f5cb73e070d22bd5b6 (patch) | |
tree | 907c37bb2a453670e5aeab335a543a82c0df2a59 /src/gallium/state_trackers/xa/xa_composite.c | |
parent | 3c520132737623d53e5c8dec6d3496ab8dffda1f (diff) |
st/xa: scissor to help tilers
Keep track of the maximal bounds of all the operations and set scissor
accordingly. For tiling GPU's this can be a big win by reducing the
memory bandwidth spent moving pixels from system memory to tile buffer
and back.
You could imagine being more sophisticated and splitting up disjoint
operations. But this simplistic approach is good enough for the common
cases.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xa/xa_composite.c')
-rw-r--r-- | src/gallium/state_trackers/xa/xa_composite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xa/xa_composite.c b/src/gallium/state_trackers/xa/xa_composite.c index b65f6eb09aa..7ae35a160e5 100644 --- a/src/gallium/state_trackers/xa/xa_composite.c +++ b/src/gallium/state_trackers/xa/xa_composite.c @@ -512,6 +512,8 @@ xa_composite_rect(struct xa_context *ctx, const float *src_matrix = NULL; const float *mask_matrix = NULL; + xa_scissor_update(ctx, dstX, dstY, dstX + width, dstY + height); + if (comp->src->has_transform) src_matrix = comp->src->transform; if (comp->mask && comp->mask->has_transform) |