[Mesa-dev] [PATCH 05/10] radeonsi: ignore PIPE_BIND_LINEAR in si_is_format_supported

Marek Olšák maraeo at gmail.com
Wed Mar 9 14:53:44 UTC 2016


On Wed, Mar 9, 2016 at 4:54 AM, Michel Dänzer <michel at daenzer.net> wrote:
> On 08.03.2016 21:21, Christian König wrote:
>> From: Christian König <christian.koenig at amd.com>
>>
>> Linear layout should work for all formats as well.
>
> The hardware actually doesn't support linear e.g. for compressed formats
> or depth/stencil formats.

The driver ignores the flag for compressed formats. It doesn't ignore
the flag for depth/stencil formats, but it does support binding a
linear depth/stencil buffer as a color buffer.

That said, I think PIPE_BIND_LINEAR should not be an allowed parameter
of is_format_supported (unless we have a very good reason to allow it).

Marek


More information about the mesa-dev mailing list