diff options
author | Marek Olšák <[email protected]> | 2013-08-10 00:08:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-08-17 01:48:25 +0200 |
commit | 87b88f1daec466e282bb92abbd5754674acb4e54 (patch) | |
tree | ba3ec465830554459e860a40bf1dd31a2c8588f5 /src/gallium | |
parent | 89ca4a00f51f46d5b6ef739aa6aa1bcd6215ed4e (diff) |
radeonsi: don't make scanout resources linear except for cursors
The surface allocator understands the scanout flag just fine.
This seems to improve performance for Ubuntu Unity on top of st/xorg
and it fixes the cursor.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c index ee8ee14fe32..8e01b141af8 100644 --- a/src/gallium/drivers/radeonsi/r600_texture.c +++ b/src/gallium/drivers/radeonsi/r600_texture.c @@ -515,7 +515,7 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen, int r; if (!(templ->flags & R600_RESOURCE_FLAG_TRANSFER) && - !(templ->bind & PIPE_BIND_SCANOUT)) { + !(templ->bind & PIPE_BIND_CURSOR)) { if (templ->flags & R600_RESOURCE_FLAG_FORCE_TILING || templ->nr_samples > 1) { array_mode = V_009910_ARRAY_2D_TILED_THIN1; |