gallium/ttn: Fix the type of gl_FragDepth.
authorEric Anholt <eric@anholt.net>
Wed, 19 Sep 2018 19:35:51 +0000 (12:35 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Oct 2018 00:16:43 +0000 (17:16 -0700)
commitda15a0d88ea1a29968ee624186d895fe5ff0f574
treecdf39b7405733ab518c34a1489858d6bcd241f6b
parentf93e43127252679b54646c6b6aad1feaf3e2375a
gallium/ttn: Fix the type of gl_FragDepth.

In TGSI we have a vec4 of which only .z is used, but for NIR we should be
using a float the same as other NIR IR.  We were already moving TGSI's .z
to the .x channel.

Acked-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c