ac/nir: clamp shadow texture comparison value on VI
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 25 Jun 2017 13:45:09 +0000 (15:45 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:42 +0000 (14:55 +0200)
commit0f9e32519bb8d00dae0b9ce998d0183d1a46a121
tree6a00ce0405dda496b2c6fce3d8937747c65c0379
parentac2ab5acadb9b792b41e0cdb3c59b8edb6dde64b
ac/nir: clamp shadow texture comparison value on VI

Needed for TC-compatible HTILE in radeonsi for test cases like
piglit spec/arb_texture_rg/execution/fs-shadow2d-red-01.shader_test

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c