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

2021-04-12 Thread Denis Konoplev
On Wed, 7 Apr 2021 05:24:30 GMT, Denis Konoplev 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.content

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

2021-04-12 Thread Denis Konoplev
On Sat, 10 Apr 2021 20:31:31 GMT, Sergey Bylokhov wrote: >>> I wonder why we have two similar but different constants: >>> #define MaxTextureSize 16384 >>> #define MTL_GPU_FAMILY_MAC_TXT_SIZE 16384 >> >> I can remove MaxTextureSize and replace its usages. >> Should I file a new bug or put change