anv/meta: Fix a finishme
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 15:33:41 +0000 (07:33 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 15:33:41 +0000 (07:33 -0800)
src/vulkan/anv_meta.c

index a58b6b421cf38cdda63e02e979e6f12117824546..3331d3abe08c9aa563a58e6d476bf358cf9ec739 100644 (file)
@@ -1139,8 +1139,8 @@ void anv_CmdBlitImage(
       if (pRegions[r].srcSubresource.layerCount > 1)
          anv_finishme("FINISHME: copy multiple array layers");
 
-      if (pRegions[r].srcOffsets[0].z != pRegions[r].srcOffsets[1].z ||
-          pRegions[r].dstOffsets[0].z != pRegions[r].dstOffsets[1].z)
+      if (pRegions[r].srcOffsets[0].z + 1 != pRegions[r].srcOffsets[1].z ||
+          pRegions[r].dstOffsets[0].z + 1 != pRegions[r].dstOffsets[1].z)
          anv_finishme("FINISHME: copy multiple depth layers");
 
       struct anv_image_view dest_iview;