[Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-03 Thread Marek Olšák
From: Marek Olšák Simply ignore the "scanout" flag if the surface dimensions are unlikely to be used by DCE. This enables DCC for all X pixmaps that are not on the list of displayable dimensions. Also ignore the "scanout" flag for non-2D, non-color, and AA surfaces. Any suggestions how to redu

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-03 Thread Gustaw Smolarczyk
2016-06-03 12:52 GMT+02:00 Marek Olšák : > From: Marek Olšák > > Simply ignore the "scanout" flag if the surface dimensions are unlikely > to be used by DCE. > > This enables DCC for all X pixmaps that are not on the list of displayable > dimensions. > > Also ignore the "scanout" flag for non-2D,

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-03 Thread Marek Olšák
On Fri, Jun 3, 2016 at 5:18 PM, Gustaw Smolarczyk wrote: > 2016-06-03 12:52 GMT+02:00 Marek Olšák : >> From: Marek Olšák >> >> Simply ignore the "scanout" flag if the surface dimensions are unlikely >> to be used by DCE. >> >> This enables DCC for all X pixmaps that are not on the list of display

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Michel Dänzer
On 03.06.2016 19:52, Marek Olšák wrote: > From: Marek Olšák > > Simply ignore the "scanout" flag if the surface dimensions are unlikely > to be used by DCE. I don't like this. Ideally, there should be feedback from the display server so that he state tracker(s) can set the PIPE_BIND_SCANOUT fla

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Marek Olšák
On Mon, Jun 6, 2016 at 10:58 AM, Michel Dänzer wrote: > On 03.06.2016 19:52, Marek Olšák wrote: >> From: Marek Olšák >> >> Simply ignore the "scanout" flag if the surface dimensions are unlikely >> to be used by DCE. > > I don't like this. > > Ideally, there should be feedback from the display se

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Michel Dänzer
On 06.06.2016 18:14, Marek Olšák wrote: > On Mon, Jun 6, 2016 at 10:58 AM, Michel Dänzer wrote: >> On 03.06.2016 19:52, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> Simply ignore the "scanout" flag if the surface dimensions are unlikely >>> to be used by DCE. >> >> I don't like this. >> >> Id

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Axel Davy
On 06/06/2016 11:37, Michel Dänzer wrote : With DRI3, st/dri could (re-)allocate buffers with the scanout flag first and after any window geometry changes, then re-allocate without the flag if the present complete event indicates that page flipping couldn't be used. That sounds like a bad id

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Michel Dänzer
On 06.06.2016 18:44, Axel Davy wrote: > On 06/06/2016 11:37, Michel Dänzer wrote : >> With DRI3, st/dri could (re-)allocate buffers with the scanout flag >> first and after any window geometry changes, then re-allocate without >> the flag if the present complete event indicates that page flipping >

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Marek Olšák
On Mon, Jun 6, 2016 at 11:47 AM, Michel Dänzer wrote: > On 06.06.2016 18:44, Axel Davy wrote: >> On 06/06/2016 11:37, Michel Dänzer wrote : >>> With DRI3, st/dri could (re-)allocate buffers with the scanout flag >>> first and after any window geometry changes, then re-allocate without >>> the flag

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Marek Olšák
On Mon, Jun 6, 2016 at 12:24 PM, Marek Olšák wrote: > On Mon, Jun 6, 2016 at 11:47 AM, Michel Dänzer wrote: >> On 06.06.2016 18:44, Axel Davy wrote: >>> On 06/06/2016 11:37, Michel Dänzer wrote : With DRI3, st/dri could (re-)allocate buffers with the scanout flag first and after any win

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Axel Davy
Le 06/06/2016 12:28, Marek Olšák a écrit : On Mon, Jun 6, 2016 at 12:24 PM, Marek Olšák wrote: On Mon, Jun 6, 2016 at 11:47 AM, Michel Dänzer wrote: On 06.06.2016 18:44, Axel Davy wrote: On 06/06/2016 11:37, Michel Dänzer wrote : With DRI3, st/dri could (re-)allocate buffers with the scanou

Re: [Mesa-dev] [PATCH 4/4] radeonsi: force non-displayable tiling based on surface dimensions

2016-06-06 Thread Marek Olšák
Alright, let's drop this patch. I'd still like to push patches 1-3 since they enable DCC for any shared texture without the scanout flag. Marek On Mon, Jun 6, 2016 at 12:47 PM, Axel Davy wrote: > Le 06/06/2016 12:28, Marek Olšák a écrit : >> >> On Mon, Jun 6, 2016 at 12:24 PM, Marek Olšák wrote