[Mesa-dev] [PATCH 10/10] radv/gfx9: don't expose linear depth on vega.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Tue Aug 22 06:57:42 UTC 2017
The series is
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
btw you might want to nominate some patches for stable.
On Mon, Aug 21, 2017, at 09:34, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This just zeros out the linear flags for gfx9 + depth formats.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/amd/vulkan/radv_formats.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_formats.c
> b/src/amd/vulkan/radv_formats.c
> index 57bde9e..c19a9a3 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;
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list