summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-08-21 14:11:04 +1000
committerDave Airlie <[email protected]>2017-08-24 01:14:15 +0100
commit8985ad494bce5a4c365fe38fdf500d8582b5a7d0 (patch)
tree0437e0eb7453ba2a95b39a57eefc5c780d022bf8 /src/amd
parent5d26e0baf223b361c9919db213915a82d2dff5c4 (diff)
radv/gfx9: don't expose linear depth on vega.
This just zeros out the linear flags for gfx9 + depth formats. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Cc: "17.2" <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_formats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index 57bde9e7cdc..c19a9a37a49 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -578,6 +578,10 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
VK_FORMAT_FEATURE_BLIT_DST_BIT;
tiled |= VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR |
VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR;
+
+ /* GFX9 doesn't support linear depth surfaces */
+ if (physical_device->rad_info.chip_class >= GFX9)
+ linear = 0;
}
} else {
bool linear_sampling;