On Wed, 7 Apr 2021 05:24:30 GMT, Denis Konoplev <dkonop...@openjdk.org> wrote:
> 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; > } This pull request has now been integrated. Changeset: 0fee6eca Author: Denis Konoplev <dkonop...@openjdk.org> Committer: Jayathirth D V <j...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/0fee6eca Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod 8264318: Lanai: DrawHugeImageTest.java fails on apple M1 Reviewed-by: serb, jdv ------------- PR: https://git.openjdk.java.net/jdk/pull/3369