ac/nir: handle nir_intrinsic_load_first_vertex like base_vertex
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Apr 2018 14:58:24 +0000 (16:58 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Apr 2018 15:07:38 +0000 (17:07 +0200)
commitdd069e9b41cb667cc6290417a7ce83e1f9ab1349
tree1ba6a76804c02c38de83cd73bc5144e2bff93617
parentb21a4efb55359cc1ddcb6cfd99982e3bddfc8332
ac/nir: handle nir_intrinsic_load_first_vertex like base_vertex

This fixes a ton of CTS crashes.

Fixes: c366f422f0 ("nir: Offset vertex_id by first_vertex instead of base_vertex")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c