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

2021-04-15 Thread Jayathirth D V
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++) { >

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

2021-04-14 Thread Sergey Bylokhov
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++) { >

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

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++) { >

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

2021-04-10 Thread Sergey Bylokhov
On Thu, 8 Apr 2021 16:45:23 GMT, Denis Konoplev wrote: > I can remove MaxTextureSize and replace its usages. > Should I file a new bug or put changes in this PR? Yes please file a bug. - PR: https://git.openjdk.java.net/jdk/pull/3369

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

2021-04-08 Thread Denis Konoplev
On Wed, 7 Apr 2021 19:54:03 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 changes in this PR?

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

2021-04-07 Thread Sergey Bylokhov
On Wed, 7 Apr 2021 19:56:43 GMT, Sergey Bylokhov 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++) { >>

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

2021-04-07 Thread Sergey Bylokhov
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.contents

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

2021-04-06 Thread Denis Konoplev
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 *