radv: disable mip point pre clamping.
authorDave Airlie <airlied@redhat.com>
Tue, 7 Mar 2017 05:08:42 +0000 (05:08 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Mar 2017 19:50:46 +0000 (05:50 +1000)
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.

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

index 9202baaaa8bf10118193362875a897812fadf42c..f1874ce5447cace2b864f23a62fd7e187e53be93 100644 (file)
@@ -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));