Skip to content

P3D don't work on AMD dynamic switchable graphics #5308

@yangwenbo99

Description

@yangwenbo99

Description

I have a laptop with a low end AMD graphicial card R5 230M. Since my Intel integrated card gave me a slow performance in a program, I tried to use AMD card to render this file. (Using PRIME) Sadly, it can not work.

Expected Behavior

The program can normally run.

Current Behavior

Normal window does not open, and the error informations are:
java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071) at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954) at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) at com.jogamp.opengl.GLProfile.getGL2ES2(GLProfile.java:909) at processing.opengl.PSurfaceJOGL.initGL(PSurfaceJOGL.java:192) at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:136) at processing.core.PApplet.initSurface(PApplet.java:10889) at processing.core.PApplet.runSketch(PApplet.java:10776) at processing.core.PApplet.main(PApplet.java:10476)

Steps to Reproduce

  1. Write a processing file, use P2D or P3D.
  2. DRI_PRIME=1 processing-java --sketch=../theTestFile/ --run

Your Environment

  • Processing version: 3.3.6
  • Operating System and OS version: Arch Linux
  • Other information:
    I'm using PRIME to manage hybrid graphics.

Possible Causes / Solutions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions