diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-20 16:58:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-20 17:07:38 +0200 |
commit | dd069e9b41cb667cc6290417a7ce83e1f9ab1349 (patch) | |
tree | 1ba6a76804c02c38de83cd73bc5144e2bff93617 /src | |
parent | b21a4efb55359cc1ddcb6cfd99982e3bddfc8332 (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index f00091e8256..ba7f353a9ab 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2815,10 +2815,10 @@ static void visit_intrinsic(struct ac_nir_context *ctx, result = ac_build_gather_values(&ctx->ac, values, 3); break; } - case nir_intrinsic_load_base_vertex: { + case nir_intrinsic_load_base_vertex: + case nir_intrinsic_load_first_vertex: result = ctx->abi->load_base_vertex(ctx->abi); break; - } case nir_intrinsic_load_local_group_size: result = ctx->abi->load_local_group_size(ctx->abi); break; |