Merge pull request #718 from billhollings/master

vkCmdBlitImage() fix test for different sample counts.
diff --git a/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm b/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm
index df846e8..a18ecd1 100644
--- a/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm
+++ b/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm
@@ -77,9 +77,10 @@
 	_isDstCompressed = _dstImage->getIsCompressed();
 	uint32_t dstBytesPerBlock = mvkMTLPixelFormatBytesPerBlock(_dstMTLPixFmt);
 
-	_canCopyFormats = formatsMustMatch
-						? (_dstMTLPixFmt == _srcMTLPixFmt)
-						: ((dstBytesPerBlock == srcBytesPerBlock) && (_dstSampleCount == _srcSampleCount));
+	_canCopyFormats = (_dstSampleCount == _srcSampleCount) && (formatsMustMatch
+																? (_dstMTLPixFmt == _srcMTLPixFmt)
+																: (dstBytesPerBlock == srcBytesPerBlock));
+
 	_useTempBuffer = (_srcMTLPixFmt != _dstMTLPixFmt) && (_isSrcCompressed || _isDstCompressed);	// Different formats and at least one is compressed
 
 	_commandUse = commandUse;