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 20th June 2011 at http://forums.arm.com

    Hi Peter,

    strange - I see a different result here. I modified a simple example to do this in the setup:


    GLboolean bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);

    GL_CHECK(glDisable(GL_DITHER));
    LOGD("glDisable(GL_DITHER)\n");

    bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);

    GL_CHECK(glEnable(GL_DITHER));
    LOGD("glEnable(GL_DITHER)\n");

    bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);


    When I run this on my S2 I see this output:

    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 1
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glDisable(GL_DITHER)
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 0
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glEnable(GL_DITHER)
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 1

    My S2 reports this:

    Model number: GT-I9100
    Android version: 2.3.3
    Baseband version: I9100XXKDJ
    Kernel version: 2.6.35.7-I9100XWKE2-CL187606 root@DELL101 #2
    Build number: GINGERBREAD.XWKE2

    What is your setup? Cheers, Pete
Reply
  • Note: This was originally posted on 20th June 2011 at http://forums.arm.com

    Hi Peter,

    strange - I see a different result here. I modified a simple example to do this in the setup:


    GLboolean bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);

    GL_CHECK(glDisable(GL_DITHER));
    LOGD("glDisable(GL_DITHER)\n");

    bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);

    GL_CHECK(glEnable(GL_DITHER));
    LOGD("glEnable(GL_DITHER)\n");

    bDither = GL_CHECK(glIsEnabled(GL_DITHER));
    LOGD("glIsEnabled(GL_DITHER) = %i\n", bDither);


    When I run this on my S2 I see this output:

    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 1
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glDisable(GL_DITHER)
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 0
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glEnable(GL_DITHER)
    06-20 12:02:01.840: DEBUG/Mali  Simple Examples(25391): glIsEnabled(GL_DITHER) = 1

    My S2 reports this:

    Model number: GT-I9100
    Android version: 2.3.3
    Baseband version: I9100XXKDJ
    Kernel version: 2.6.35.7-I9100XWKE2-CL187606 root@DELL101 #2
    Build number: GINGERBREAD.XWKE2

    What is your setup? Cheers, Pete
Children
No data