radv: do not set DISABLE_LSB_CEIL on GFX9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Nov 2017 19:58:29 +0000 (20:58 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Nov 2017 20:38:01 +0000 (21:38 +0100)
The state no longer exists on GFX9.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 62591c7e3db9ddd6c49485ae07857d123ba5aa3d..7b1b20e335318d8da27b292a3102d3fbef43d6da 100644 (file)
@@ -3439,7 +3439,7 @@ radv_init_sampler(struct radv_device *device,
                             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(0) |
-                            S_008F38_DISABLE_LSB_CEIL(1) |
+                            S_008F38_DISABLE_LSB_CEIL(device->physical_device->rad_info.chip_class <= VI) |
                             S_008F38_FILTER_PREC_FIX(1) |
                             S_008F38_ANISO_OVERRIDE(is_vi));
        sampler->state[3] = (S_008F3C_BORDER_COLOR_PTR(0) |