Problem reading depth buffer as input attachment.


This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of james james 10 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #54154
    Profile photo of Matthew

    It would seem that I am unable to read a depth buffer as an input attachment.
    The depth buffer was written in a previous subpass. Instead of getting values from the depth buffer it would seem that I am just seeing noise.
    I have no problems reading a colour buffer as an input attachment.
    You can see the noise revealed in this image which was using an in-shader depth test as part of a depth peel.

    I have no problems with this code on desktop GPUs and I cannot see any relevant validation messages.
    Does anyone know what I might be doing wrong (or is this not supported on PowerVR)?
    I am testing on a Nexus Player running the latest Android 7 preview (driver version: 0.988.3583).
    An APK can be found here:
    If anyone is interested the code is here:

    Profile photo of james

    Hi Matt,

    Thanks very much for reporting this issue to us. We have reproduced the issues you are seeing and we have confirmed that this is caused by a bug in our Vulkan drivers. Due to the nature of this issue we consider it to be of high priority. We cannot confirm when a new driver with this fix will be released although we hope it will happen shortly.


Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.