nir: handle load_input_vertex in nir_get_io_offset_src
authorMarek Olšák <marek.olsak@amd.com>
Thu, 13 Aug 2020 15:53:17 +0000 (11:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Aug 2020 11:06:49 +0000 (11:06 +0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6328>

src/compiler/nir/nir_lower_io.c

index 58c4597c27eaae29022fd6308bda3bcc3abdf656..fd5a713349e9eecf8a07ade297c2fcbbc939ec6b 100644 (file)
@@ -1553,6 +1553,7 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr)
       return &instr->src[0];
    case nir_intrinsic_load_ubo:
    case nir_intrinsic_load_ssbo:
+   case nir_intrinsic_load_input_vertex:
    case nir_intrinsic_load_per_vertex_input:
    case nir_intrinsic_load_per_vertex_output:
    case nir_intrinsic_load_interpolated_input: