mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
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 <michel.daenzer@amd.com>
This commit is contained in:
parent
89ca4a00f5
commit
87b88f1dae
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue