diff options
author | Dave Airlie <[email protected]> | 2018-08-31 15:55:15 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-09-03 11:38:00 +1000 |
commit | c1ba33c34b804ddce2de18ca3c13611202d8e38b (patch) | |
tree | ae679c8ffb5b3becf7742f3b7437e82d139c1721 /src | |
parent | ac0856ae4100a05dcd1fd932d9fd10200f8f7a7c (diff) |
radv: don't expose linear depth surfaces on SI/CIK/VI either.
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_formats.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 6253c27b95d..e1b4b5e830f 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -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; |