OSDN Git Service

anv: Support modifiers in GetImageFormatProperties2
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 16 Jan 2020 19:38:55 +0000 (13:38 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jan 2020 18:27:29 +0000 (18:27 +0000)
commit6790397346ccafbe1baa2ef03ce33d6bef5f257c
tree42294d77795ba40237e13b1023327613febacc5b
parent44f5a92c0b16c18d7e0f5b73c243a68c94d97ad4
anv: Support modifiers in GetImageFormatProperties2

Images with modifiers come with restrictions:

 1. They have to be simple 2D images right now

 2. They need to have a sensible format (not compressed, multi-plane, or
    non-power-of-two)

 3. If a CCS modifier is being requested, they have to actually support
    CCS_E and be CCS-compatible with any other formats the client may
    wish to use for image views.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3434>
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h