[Mesa-dev] [PATCH 6/6] radv: enable DCC for mipmapped color textures on GFX8
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Tue Jun 18 23:39:00 UTC 2019
r-b
On Tue, Jun 18, 2019 at 4:12 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> It's tricky on GFX9, so only GFX8 for now.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_image.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index 98df24d3546..3e5e4c01967 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -170,8 +170,13 @@ radv_use_dcc_for_image(struct radv_device *device,
> vk_format_get_plane_count(pCreateInfo->format) > 1)
> return false;
>
> - /* TODO: Enable DCC for mipmaps and array layers. */
> - if (pCreateInfo->mipLevels > 1 || pCreateInfo->arrayLayers > 1)
> + /* TODO: Enable DCC for mipmaps on GFX9+. */
> + if (pCreateInfo->mipLevels > 1 &&
> + device->physical_device->rad_info.chip_class >= GFX9)
> + return false;
> +
> + /* TODO: Enable DCC for array layers. */
> + if (pCreateInfo->arrayLayers > 1)
> return false;
>
> if (radv_surface_has_scanout(device, create_info))
> --
> 2.22.0
>
> _______________________________________________
> 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