<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Using a single-plane imageview from a multi-plane image is broken"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105496#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Using a single-plane imageview from a multi-plane image is broken"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105496">bug 105496</a>
from <span class="vcard"><a class="email" href="mailto:lionel.g.landwerlin@linux.intel.com" title="Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>"> <span class="fn">Lionel Landwerlin</span></a>
</span></b>
<pre>(In reply to atomnuker from <a href="show_bug.cgi?id=105496#c3">comment #3</a>)
<span class="quote">> (In reply to Lionel Landwerlin from <a href="show_bug.cgi?id=105496#c1">comment #1</a>)
> > I think the mistake here is that you're using a single image with 2
> > different view. This requires a compatible format between the 2 views. R8 &
> > G8_B8_R8_3PLANE_420 are not compatible.
>
> Yes they are. Read this. It's right at the top.
> <a href="https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec">https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec</a>.
> html#features-formats-compatible-planes
>
>
> >
> > The feature you want to use is VK_IMAGE_CREATE_ALIAS_BIT. You'll need to
> > create 2 image & 2 views and have the 2 images share the same memory.
>
> It's a solution, though not the one I want, is recommended by the spec or
> something I'd like to waste time just to find out it doesn't work.
> </span >
One thing that was also missing on the traces is that no image seem to be
created with VK_IMAGE_USAGE_STORAGE_BIT, which what is needed for descriptors
of type VK_DESCRIPTOR_TYPE_STORAGE_IMAGE.
That seems to hit an assert in my debug build.
<span class="quote">>
> >
> > This is a bit confusing to be fair :) I had to reread the spec, even I
> > implemented this...
>
> That would explain why it doesn't work.
>
>
> >
> > Consider running your application with the validation layers, it'll help
> > spotting potential mistakes like this.
>
> I am running it through validation layers every time and I've reported all
> of the issues on multiplane images, including the one where they don't list
> R8 and G8_B8_R8 as compatible. It'll get fixed.
> Though considering how many assertions have been made in the validation
> layers that no one will ever bother with multiplane images I'm getting
> tired. Though the fact that they're slowly getting fixed one at a time gives
> me hope.</span ></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>