projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10bc9f7
)
anv/formats: Exit early for unsupported formats
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 28 May 2016 00:16:09 +0000
(17:16 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 28 May 2016 00:17:09 +0000
(17:17 -0700)
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 e7e0ecac309acbf7bb73d1cb1c58b5b9ec8b4f13..457e82003d69dfe967d8aeae85b29674fb93a065 100644
(file)
--- a/
src/intel/vulkan/anv_formats.c
+++ b/
src/intel/vulkan/anv_formats.c
@@
-376,8
+376,9
@@
anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
gen += 5;
VkFormatFeatureFlags linear = 0, tiled = 0, buffer = 0;
- if (anv_formats[format].isl_format != ISL_FORMAT_UNSUPPORTED &&
- vk_format_is_depth_or_stencil(format)) {
+ if (anv_formats[format].isl_format == ISL_FORMAT_UNSUPPORTED) {
+ /* Nothing to do here */
+ } else if (vk_format_is_depth_or_stencil(format)) {
tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT;
if (physical_device->info->gen >= 8)
tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;