lavapipe: don't advertise linear filtering on integer textures.
The backend doesn't support this. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7416>
This commit is contained in:
parent
3d81cf4621
commit
9d3615166e
|
@ -201,7 +201,8 @@ lvp_physical_device_get_format_properties(struct lvp_physical_device *physical_d
|
|||
if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat,
|
||||
PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_SAMPLER_VIEW)) {
|
||||
features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
|
||||
features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
if (!util_format_is_pure_integer(pformat))
|
||||
features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
}
|
||||
|
||||
if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat,
|
||||
|
|
Loading…
Reference in New Issue