[Mesa-dev] [PATCH] radv: disable texture gather workaround on gfx9.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Aug 16 23:30:49 UTC 2017
Yay, less workarounds.
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Thu, Aug 17, 2017, at 01:19, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> Not required anymore.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/amd/common/ac_nir_to_llvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c
> b/src/amd/common/ac_nir_to_llvm.c
> index bc325e6..cc42877 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);
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list