mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-11 00:40:36 +02:00
anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
This was added last minute and the API bumped to 1.0.2.
This commit is contained in:
parent
ac75746448
commit
ec80d6388a
1 changed files with 3 additions and 0 deletions
|
|
@ -318,6 +318,9 @@ get_image_format_properties(int gen, enum isl_format base,
|
|||
if (info->sampling <= gen) {
|
||||
flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT |
|
||||
VK_FORMAT_FEATURE_BLIT_SRC_BIT;
|
||||
|
||||
if (info->filtering <= gen)
|
||||
flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
}
|
||||
|
||||
/* We can render to swizzled formats. However, if the alpha channel is
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue