zink: transform z-range
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 27 Sep 2018 16:23:14 +0000 (18:23 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:43 +0000 (08:51 +0000)
commitb533de12a5aab989b52573ced8a9fc7e6c15e330
tree04c7ba39c3c2ba84366b2645fa4b49bbb22d009d
parent9fa7400564244bdd333066eb71285c3703b537f7
zink: transform z-range

In vulkan, the Z-range of clip-space goes from 0..W instead of -W..+W
as is the case in OpenGL. So we need to transform the Z-range to
account for this.

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_compiler.c