anv: add a comment about handling buffer view swizzles on gfx7

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17385>
This commit is contained in:
Lionel Landwerlin 2022-07-12 23:07:00 +03:00 committed by Marge Bot
parent a9edc268b9
commit af1ecbeb0a

View file

@ -113,6 +113,9 @@ anv_descriptor_data_for_type(const struct anv_physical_device *device,
* Do not handle VK_DESCRIPTOR_TYPE_STORAGE_IMAGE and
* VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT because they already must
* have identity swizzle.
*
* TODO: We need to handle swizzle on buffer views too for those same
* platforms.
*/
if (device->info.verx10 == 70 &&
(type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE ||