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:
2af3acd
)
anv/formats: Use is_power_of_two instead of is_rgb to determine renderability
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 27 Jan 2016 01:28:16 +0000
(17:28 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 27 Jan 2016 04:29:16 +0000
(20:29 -0800)
src/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_formats.c
b/src/vulkan/anv_formats.c
index
30e865c
..
3b63c97
100644
(file)
--- a/
src/vulkan/anv_formats.c
+++ b/
src/vulkan/anv_formats.c
@@
-409,7
+409,7
@@
anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
* what most clients will want.
*/
if (linear_fmt != ISL_FORMAT_UNSUPPORTED &&
-
isl_format_is_rgb(linear_fmt
) &&
+
!util_is_power_of_two(isl_format_layouts[linear_fmt].bs
) &&
isl_format_rgb_to_rgbx(linear_fmt) == ISL_FORMAT_UNSUPPORTED) {
tiled &= ~VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT &
~VK_FORMAT_FEATURE_BLIT_DST_BIT;