Re: [Mesa-dev] [PATCH] anv: fix viewport transformation for z component

2017-09-22 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand Cc: mesa-sta...@lists.freedesktop.org On Fri, Sep 22, 2017 at 3:22 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > Kindly reminder that this patch is still unreviewed. > > Sam > > On Friday, September 15, 2017 11:50:46 AM CEST you

Re: [Mesa-dev] [PATCH] anv: fix viewport transformation for z component

2017-09-22 Thread Samuel Iglesias Gonsálvez
Kindly reminder that this patch is still unreviewed. Sam On Friday, September 15, 2017 11:50:46 AM CEST you wrote: > In Vulkan, for 'z' (depth) component, the scale and translate values > for the viewport transformation are: > > pz = maxDepth - minDepth > oz = minDepth > > zf = pz × zd + oz >

[Mesa-dev] [PATCH] anv: fix viewport transformation for z component

2017-09-15 Thread Samuel Iglesias Gonsálvez
In Vulkan, for 'z' (depth) component, the scale and translate values for the viewport transformation are: pz = maxDepth - minDepth oz = minDepth zf = pz × zd + oz Being zd, the third component in vertex's normalized device coordinates. Fixes: dEQP-VK.draw.inverted_depth_ranges.*