This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Dithering on SGS2/Mali400MP

Note: This was originally posted on 19th June 2011 at http://forums.arm.com

Hi,

I was just investigating a color banding issue in a gles2 application on Samsung Galaxy S II and noticed that GL_DITHER was disabled by default, and could not be enabled either.
Is this a known problem? Intentional? Driver or android/platform issue?

Regards,
Peter
Parents
  • Note: This was originally posted on 12th July 2011 at http://forums.arm.com

    Hi,

    yes Mali-400 supports many color modes including 16-bit, 24-bit and 32-bit.

    if you select an RGB888 EGL config in the GLSurfaceView's constructor method:

    setEGLConfigChooser(8, 8, 8, 0, 0, 0);

    and set the pixel format in the Activity's onCreate() method:

    glView = new GLView(this);
    glView.getHolder().setFormat(PixelFormat.RGBA_8888);
    setContentView(glView);


    then you should get a 24-bit color surface for your 3D application.

    HTH, Pete
Reply
  • Note: This was originally posted on 12th July 2011 at http://forums.arm.com

    Hi,

    yes Mali-400 supports many color modes including 16-bit, 24-bit and 32-bit.

    if you select an RGB888 EGL config in the GLSurfaceView's constructor method:

    setEGLConfigChooser(8, 8, 8, 0, 0, 0);

    and set the pixel format in the Activity's onCreate() method:

    glView = new GLView(this);
    glView.getHolder().setFormat(PixelFormat.RGBA_8888);
    setContentView(glView);


    then you should get a 24-bit color surface for your 3D application.

    HTH, Pete
Children
No data