[Mesa-dev] [PATCH 14/15] anv: enable multiple planes per image/imageView

Jason Ekstrand jason at jlekstrand.net
Tue Sep 19 18:59:28 UTC 2017


On Tue, Sep 19, 2017 at 7:39 AM, Lionel Landwerlin <
lionel.g.landwerlin at intel.com> wrote:

> On 16/09/17 00:06, Jason Ekstrand wrote:
>
>
>
> On Fri, Sep 15, 2017 at 7:11 AM, Lionel Landwerlin <
> lionel.g.landwerlin at intel.com> wrote:
>
>> This change introduce the concept of planes for image & views. It
>> matches the planes available in new formats.
>>
>> We also refactor depth & stencil support through the usage of planes
>> for the sake of uniformity. In the backend (genX_cmd_buffer.c) we have
>> to take some care though with regard to auxilliary surfaces.
>> Multiplanar color buffers can have multiple auxilliary surfaces but
>> depth & stencil share the same HiZ one (only store in the depth
>> plane).
>>
>
> Not really.  HiZ has nothing to do with stencil, it's just for depth
> compression.  I think, in principal, I like splitting things out into a
> plane array better.  I never did like the way we special-cased
> depth+stencil.
>
>
> Oh, maybe I dreamed that...
> Isn't there a requirement to put the depth & stencil into the same buffer?
> Or were we just doing that to same some space?
>

Nope.  They can be disjoint (and are in i965).  I've been tempted to add an
extension to let people bind them to separate memory if they'd like.

--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170919/aeeb125a/attachment.html>


More information about the mesa-dev mailing list