This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Mali-G710 depthRange issue

Hi. 

We are experiencing unexpected depth buffer behaviour when setting glDepthRange with equal min and max values.


In the below example a single quad is renderer

one trace set glDepthRangef(0.49, 0.5) which produces expected results
another trace set glDepthRangef(0.5, 0.5) which produces unexpected results

the graphic analyzer traces can be found at https://drive.google.com/drive/folders/1e_oDplD3EyXENUuVzsrnEi17e-T_CUfC?usp=sharing

GL_VENDOR = ARM, GL_RENDERER = Mali-G710, GL_VERSION = OpenGL ES 3.2 v1.r38p1-01eac0.55eb2d40cce8f18c0f57f61c686a946f


Result of single quad rendering with glDepthRangef(0.49, 0.5)

Result of single quad rendering (same state, uniforms, ....) with glDepthRangef(0.5, 0.5)




Also worth noting that this issue is not reproducible on other GPU's. And the question is - whether this a known issue and what are the recommended workarounds?

Thank you in advance, Aleksei

Parents
  • Thanks for the bug report.

    This smells like a precision issue in our implementation somewhere, but will need to check. If it's a precision issue, I expect what you are doing (moving min or max slightly to increase the delta) is about as good as workarounds are going to get.

    Cheers, 
    Pete

Reply
  • Thanks for the bug report.

    This smells like a precision issue in our implementation somewhere, but will need to check. If it's a precision issue, I expect what you are doing (moving min or max slightly to increase the delta) is about as good as workarounds are going to get.

    Cheers, 
    Pete

Children