Re: [Mesa-dev] [PATCH] anv: fix bug when VK_REMAINING_ARRAY_LAYERS is used in vkCmdClearAttachments()

2017-12-18 Thread Jason Ekstrand
On Mon, Dec 18, 2017 at 2:55 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > > > On 15/12/17 16:46, Jason Ekstrand wrote: > > Ugh... The problem here is that we may not know the framebuffer in > > CmdCearAttachments if it's in a secondary command buffer. I'm not > > actually sure

Re: [Mesa-dev] [PATCH] anv: fix bug when VK_REMAINING_ARRAY_LAYERS is used in vkCmdClearAttachments()

2017-12-18 Thread Samuel Iglesias Gonsálvez
On 15/12/17 16:46, Jason Ekstrand wrote: > Ugh... The problem here is that we may not know the framebuffer in > CmdCearAttachments if it's in a secondary command buffer.  I'm not > actually sure what to do in that case.  I guess we could store the > number of later somewhere and teach blorp how

Re: [Mesa-dev] [PATCH] anv: fix bug when VK_REMAINING_ARRAY_LAYERS is used in vkCmdClearAttachments()

2017-12-15 Thread Jason Ekstrand
Ugh... The problem here is that we may not know the framebuffer in CmdCearAttachments if it's in a secondary command buffer. I'm not actually sure what to do in that case. I guess we could store the number of later somewhere and teach blorp how to do an indirect draw. Really, I think it

[Mesa-dev] [PATCH] anv: fix bug when VK_REMAINING_ARRAY_LAYERS is used in vkCmdClearAttachments()

2017-12-15 Thread Samuel Iglesias Gonsálvez
Blorp was not supporting the use of the constant VK_REMAINING_ARRAY_LAYERS (whose value is ~0) in the VkClearRect structure. If we receive it, we need to calculate the layer count as the image layers count minus the base array layer. Signed-off-by: Samuel Iglesias Gonsálvez