Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261714

Lanai : Crash on graphics card switch when Metal API validation is enabled

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      System to test should have a dual graphics card.

      1) Enable Metal API validation (export METAL_DEVICE_WRAPPER_TYPE=1)
      2) Launch SwingSet2 demo or any other application with Metal rendering pipeline (-Dsun.java2d.metal=true)
      3) toggle "Automatic graphics switching" setting

      Application launched in step 2 crashes with following error.

      -[MTLDebugRenderCommandEncoder setFragmentSamplerState:atIndex:]:1950: failed assertion `sampler is associated with a different device'


      Note : the crash is observed both ways - a switch from integrated GPU to discrete GPU and the other way round.

            aghaisas Ajit Ghaisas
            aghaisas Ajit Ghaisas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: