diff options
author | Nanley Chery <[email protected]> | 2016-05-03 10:08:44 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2016-05-23 17:26:17 -0700 |
commit | 2ae493d68647af26c64ae59f0127349d75817b91 (patch) | |
tree | b09188e2a52e75b0a8c0e89d3ab27dcfce7de1cb /src/intel/vulkan/anv_formats.c | |
parent | 9721be6681b4bedc8ca20a0a494a21ce02546577 (diff) |
anv/formats: Make alpha blending a property of render targets
In agreement with the SNB PRM, alpha blending is a property that render
targets may or may not support.
Signed-off-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index a920ab43a04..a0fa976da9f 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -329,11 +329,9 @@ get_image_format_properties(int gen, enum isl_format base, format.swizzle.a == ISL_CHANNEL_SELECT_ALPHA) { flags |= VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT | VK_FORMAT_FEATURE_BLIT_DST_BIT; - } - if (info->alpha_blend <= gen && - format.swizzle.a == ISL_CHANNEL_SELECT_ALPHA) { - flags |= VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT; + if (info->alpha_blend <= gen) + flags |= VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT; } /* Load/store is determined based on base format. This prevents RGB |