projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac75746
)
anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 28 Jan 2016 06:02:03 +0000
(22:02 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 28 Jan 2016 06:02:06 +0000
(22:02 -0800)
This was added last minute and the API bumped to 1.0.2.
src/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_formats.c
b/src/vulkan/anv_formats.c
index 3b63c97e5f4d0e6807cfc530899e9433c653bc18..17ccae0cea22b4c628cfb385912be41f32c59601 100644
(file)
--- a/
src/vulkan/anv_formats.c
+++ b/
src/vulkan/anv_formats.c
@@
-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