Check if blit sizes are less than MTL_GPU_FAMILY_MAC_TXT_SIZE. It's safe since we copy tile from the image with memcpy. // copy src pixels inside src bounds to buff for (int row = 0; row < sh; row++) { memcpy(buff.contents + (row * sw * srcInfo->pixelStride), raster, sw * srcInfo->pixelStride); raster += (NSUInteger)srcInfo->scanStride; }
------------- Commit messages: - 8264318: DrawHugeImageTest.java fails on apple M1 Changes: https://git.openjdk.java.net/jdk/pull/3369/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3369&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8264318 Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod Patch: https://git.openjdk.java.net/jdk/pull/3369.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/3369/head:pull/3369 PR: https://git.openjdk.java.net/jdk/pull/3369