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++) { > memcpy(buff.content

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

2021-04-15 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

[OpenJDK 2D-Dev] RFR: 8265062: Remove duplication constant MaxTextureSize

2021-04-15 Thread Denis Konoplev
I've removed MaxTextureSize and replaced its usages with MTL_GPU_FAMILY_MAC_TXT_SIZE - Commit messages: - 8265062: Remove duplication constant MaxTextureSize Changes: https://git.openjdk.java.net/jdk/pull/3519/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3519&range=

[OpenJDK 2D-Dev] RFR: 8265304: Temporarily make Metal the default 2D rendering pipeline for macOS

2021-04-15 Thread Ajit Ghaisas
This PR makes Metal as the default Java2D rendering pipeline for macOS. Note : from JBS description : The plan of record has always been that for JDK 17 the new Metal pipeline will be OFF by default and must be explicitly enabled by setting a system property. We are not changing that plan but to

Re: [OpenJDK 2D-Dev] RFR: 8265304: Temporarily make Metal the default 2D rendering pipeline for macOS

2021-04-15 Thread Jayathirth D V
On Fri, 16 Apr 2021 05:57:13 GMT, Ajit Ghaisas wrote: > This PR makes Metal as the default Java2D rendering pipeline for macOS. > > Note : from JBS description : > The plan of record has always been that for JDK 17 the new Metal pipeline > will be OFF by default and must be explicitly enabled b