[OpenJDK 2D-Dev] RFR: 8264318 Lanai: DrawHugeImageTest.java fails on apple M1

Denis Konoplev dkonoplev at openjdk.java.net
Mon Apr 12 10:47:33 UTC 2021


On Wed, 7 Apr 2021 05:24:30 GMT, Denis Konoplev <dkonoplev at 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;
> }

Bug: [Remove duplication constant MaxTextureSize](https://bugs.openjdk.java.net/browse/JDK-8265062)

-------------

PR: https://git.openjdk.java.net/jdk/pull/3369


More information about the 2d-dev mailing list