projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80de528
)
anv/formats: Disallow linear ASTC textures
author
Nanley Chery
<nanley.g.chery@intel.com>
Thu, 22 Sep 2016 22:43:07 +0000
(15:43 -0700)
committer
Nanley Chery
<nanley.g.chery@intel.com>
Thu, 3 Nov 2016 18:22:58 +0000
(11:22 -0700)
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_formats.c
b/src/intel/vulkan/anv_formats.c
index
1b8b881
..
7497a38
100644
(file)
--- a/
src/intel/vulkan/anv_formats.c
+++ b/
src/intel/vulkan/anv_formats.c
@@
-423,6
+423,10
@@
anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
tiled &= ~VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT &
~VK_FORMAT_FEATURE_BLIT_DST_BIT;
}
+
+ /* ASTC textures must be in Y-tiled memory */
+ if (isl_format_get_layout(linear_fmt.isl_format)->txc == ISL_TXC_ASTC)
+ linear = 0;
}
out_properties->linearTilingFeatures = linear;