v3dv/format: expose correctly if a texture format is filterable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 14 Apr 2020 22:56:31 +0000 (00:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:29 +0000 (21:21 +0000)
commit5c826568ab4ccfe05dcfcbf62bb1d648304aac67
treed6ae37ad90c6a2e3fe5d888ff37505dd7c27b687
parent781dd7ff31af62201a64e8977bbc63a48acd482b
v3dv/format: expose correctly if a texture format is filterable

We were enabling VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT for
any format valid for texturing, but for example, right now we don't
support linear filtering on any depth format.

This is needed to get some hundreds of tests like this:
dEQP-VK.pipeline.sampler.view_type.1d.format.r32g32_sfloat.mag_filter.linear

properly skipped (those were all Crashes with the simulator, and
almost all Fails with the real device).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_formats.c
src/broadcom/vulkan/v3dv_private.h