diff options
author | Dave Airlie <[email protected]> | 2017-08-17 00:17:20 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-08-17 02:24:36 +0100 |
commit | 4c02e2bd95d16407084914ff7248a1717bdce658 (patch) | |
tree | 4977068b4ad805627f71dc95e9f9ea7fcecf3bd3 | |
parent | 3ab0c259393a3bddac3846288292f179e5c382bc (diff) |
radv: disable texture gather workaround on gfx9.
Not required anymore.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Cc: "17.2" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 17bfe5b96f4..7aa7567ebc0 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2185,7 +2185,7 @@ static LLVMValueRef build_tex_intrinsic(struct ac_nir_context *ctx, break; } - if (instr->op == nir_texop_tg4) { + if (instr->op == nir_texop_tg4 && ctx->abi->chip_class <= VI) { enum glsl_base_type stype = glsl_get_sampler_result_type(instr->texture->var->type); if (stype == GLSL_TYPE_UINT || stype == GLSL_TYPE_INT) { return radv_lower_gather4_integer(&ctx->ac, args, instr); |