radv: don't expose linear depth surfaces on SI/CIK/VI either.
authorDave Airlie <airlied@redhat.com>
Fri, 31 Aug 2018 05:55:15 +0000 (15:55 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 3 Sep 2018 01:38:00 +0000 (11:38 +1000)
ac_surface.c: gfx6_compute_surface says
/* DB doesn't support linear layouts. */

Now if we expose linear depth and create a linear depth image
and use CmdCopyImage to copy into it, we can't map the underlying
memory and read it linearly which I think should work.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_formats.c

index 6253c27..e1b4b5e 100644 (file)
@@ -645,9 +645,8 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
                        if (radv_is_filter_minmax_format_supported(format))
                                 tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT;
 
-                       /* GFX9 doesn't support linear depth surfaces */
-                       if (physical_device->rad_info.chip_class >= GFX9)
-                               linear = 0;
+                       /* Don't support linear depth surfaces */
+                       linear = 0;
                }
        } else {
                bool linear_sampling;