aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-02-14 14:36:49 -0600
committerJason Ekstrand <[email protected]>2019-02-14 16:04:42 -0600
commitcd60c995a6d26b5f1952f21482177f36e7ad5630 (patch)
treedf56dab0735dd12f3c4865f2f7b4398c3e13e07f
parentb14d7a6b6098f9fdb317f5f647543e5de2550c22 (diff)
anv/blorp: Delete a pointless assert
Just a little higher up in the function we assert that the aspect masks are actually equal so there's no reason for the weaker check. Also, the temporary variables were causing compiler warnings in release builds. Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
-rw-r--r--src/intel/vulkan/anv_blorp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index f4eaf8f4db1..0d3d3f948e6 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -1276,11 +1276,6 @@ void anv_CmdResolveImage(
const uint32_t layer_count =
anv_get_layerCount(dst_image, &pRegions[r].dstSubresource);
- VkImageAspectFlags src_mask = pRegions[r].srcSubresource.aspectMask;
- VkImageAspectFlags dst_mask = pRegions[r].dstSubresource.aspectMask;
-
- assert(anv_image_aspects_compatible(src_mask, dst_mask));
-
uint32_t aspect_bit;
anv_foreach_image_aspect_bit(aspect_bit, src_image,
pRegions[r].srcSubresource.aspectMask) {