JDK-8312083 : Assertion in Ensemble8->3D Cubes demo when metal API validation is enabled
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-07-14
  • Updated: 2023-07-17
  • Resolved: 2023-07-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Relates :  
Description
Enable Metal API validation and metal shader validation on terminal:
export METAL_DEVICE_WRAPPER_TYPE=1
export MTL_SHADER_VALIDATION=1 

Launch Ensemble8 app using metal rendering pipeline.

Select -
3D Cubes or 3D Box demo.

It results in an assertion:

 Metal API Validation Enabled
-[MTLDebugBlitCommandEncoder generateMipmapsForTexture:]:1115: failed assertion `Generate Mipmaps For Texture Validation
[tex mipmapLevelCount](1) must be > 1.
'
Comments
Changeset: 47ea3134 Author: Jayathirth Rao D V <jayathirth.d.v@oracle.com> Committer: Ambarish Rapte <arapte@openjdk.org> Date: 2023-07-17 10:17:02 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/47ea3134f80b726667ef2e9929778d3ce9d5ae75
17-07-2023

I am able to reproduce this assertion in M1 machine also. We are creating a dummy 1x1 diffuse map when we have only diffuse color in the material, looks like we are generating mipmaps for this 1x1 texture also and it is causing this assertion.
17-07-2023