Integrated: 8369348: Failed assertion with scissor rect when Metal API Validation is enabled

Ambarish Rapte arapte at openjdk.org
Fri Feb 20 08:52:33 UTC 2026


On Wed, 18 Feb 2026 14:59:58 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

> Issue:
> This is a metal pipeline specific issue. When Metal API Validation is enabled an assertion is thrown due to invalid scissor rect being set. Please test the steps described in the ticket [JDK-8369348](https://bugs.openjdk.org/browse/JDK-8369348).
> 
> Cause:
> MetalContext.setClipRect() method uses the negative x,y values and later performs a negative value check.
> This results in a clip rect with a width and height being larger than rtt size.
> 
> Fix:
> Moving the negative value check before first use of x and y variables.
> Test is not included as, it requires manually enabling Metal API Validation i.e. METAL_DEVICE_WRAPPER_TYPE
> 
> Verification:
> Verify the issue described in the [JDK-8369348](https://bugs.openjdk.org/browse/JDK-8369348).
> Perform general sanity test.

This pull request has now been integrated.

Changeset: 141bc5a6
Author:    Ambarish Rapte <arapte at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/141bc5a63c8620c1fa70caad1a852a4c038b988e
Stats:     4 lines in 1 file changed: 2 ins; 2 del; 0 mod

8369348: Failed assertion with scissor rect when Metal API Validation is enabled

Reviewed-by: lkostyra, jdv, angorya

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

PR: https://git.openjdk.org/jfx/pull/2078


More information about the openjfx-dev mailing list