[Mesa-dev] [PATCH] radv: disable mip point pre clamping.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Mar 7 08:29:19 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Tue, Mar 7, 2017 at 6:09 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> No idea what this does, but disabling it fixes a bunch
> of failing CTS tests in the lod area, so let's go with that.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index ab04473..5f0614f 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -2631,7 +2631,7 @@ radv_init_sampler(struct radv_device *device,
>                              S_008F38_XY_MAG_FILTER(radv_tex_filter(pCreateInfo->magFilter, max_aniso)) |
>                              S_008F38_XY_MIN_FILTER(radv_tex_filter(pCreateInfo->minFilter, max_aniso)) |
>                              S_008F38_MIP_FILTER(radv_tex_mipfilter(pCreateInfo->mipmapMode)) |
> -                            S_008F38_MIP_POINT_PRECLAMP(1) |
> +                            S_008F38_MIP_POINT_PRECLAMP(0) |
>                              S_008F38_DISABLE_LSB_CEIL(1) |
>                              S_008F38_FILTER_PREC_FIX(1) |
>                              S_008F38_ANISO_OVERRIDE(is_vi));
> --
> 2.7.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