diff options
author | Marek Olšák <[email protected]> | 2020-03-26 21:48:48 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-24 10:38:54 +0000 |
commit | b4fd8f19192695e5ae7d079e2cd42b610a22265e (patch) | |
tree | 26533af10fb87ac31704f628ebc08076d9b5f48d /src/amd | |
parent | d8443b211e1ea5fad068f78a8b1f4e610be9b676 (diff) |
ac,radeonsi: simplify checking for Navi1x chips
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4698>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/llvm/ac_llvm_build.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 3d7589ee093..eab1b7fb721 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -4818,10 +4818,7 @@ void ac_build_sendmsg_gs_alloc_req(struct ac_llvm_context *ctx, LLVMValueRef wav * We always have to export at least 1 primitive. * Export a degenerate triangle using vertex 0 for all 3 vertices. */ - if (prim_cnt == ctx->i32_0 && - (ctx->family == CHIP_NAVI10 || - ctx->family == CHIP_NAVI12 || - ctx->family == CHIP_NAVI14)) { + if (prim_cnt == ctx->i32_0 && ctx->chip_class == GFX10) { assert(vtx_cnt == ctx->i32_0); prim_cnt = ctx->i32_1; vtx_cnt = ctx->i32_1; |