radv: disable texture gather workaround on gfx9.
authorDave Airlie <airlied@redhat.com>
Wed, 16 Aug 2017 23:17:20 +0000 (00:17 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 17 Aug 2017 01:24:36 +0000 (02:24 +0100)
Not required anymore.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c

index 17bfe5b..7aa7567 100644 (file)
@@ -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);