[Mesa-dev] [PATCH] ac/nir: handle nir_intrinsic_load_first_vertex like base_vertex

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Apr 20 15:01:19 UTC 2018


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 at gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c | 4 ++--
 1 file 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 f00091e825..ba7f353a9a 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;
-- 
2.17.0



More information about the mesa-dev mailing list