freedreno/ir3: Implement tess coord intrinsic
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 23 Oct 2019 02:29:07 +0000 (19:29 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 8 Nov 2019 00:37:08 +0000 (16:37 -0800)
commit4915231b8a786466041f34dd3e83f31470d40dde
treef773ab5e56ba3e25ca7d6b0e87f3797d360385ba
parente16e48d00c84588c6ef5fcb87e375a1afd6fef74
freedreno/ir3: Implement tess coord intrinsic

Our lowering pass made the z component unused by replacing its uses
by 1 - x - y.  The intrinsic implementation then just need to return
the x and y components.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c