skia on linux

115 views
Skip to first unread message

Ratnakar Pai

unread,
May 31, 2012, 7:04:52 AM5/31/12
to skia-d...@googlegroups.com
Hi,
   I am trying to run the skia SampleApp on Ubuntu 11.10. I have used the skia trunk version r4086.
 The application compiles fine but the output appears garbled(refer scrshot attached).

Also, I get this error message on the console:
---- glGetError 502 at
    ../src/gpu/gl/GrGpuGL.cpp(820) :
        TexSubImage2D(0x0DE1, 0, left, top, width, height, externalFormat, externalType, data)

Has anyone else faced such an issue?
TIA,
Ratnakar
scrshot.png

Brian Salomon

unread,
May 31, 2012, 9:21:56 AM5/31/12
to skia-d...@googlegroups.com
Hi Ratnakar,

We have not encountered this issue. Can you provide some info about your machine / GPU? If you find this line in GrGpuGL.cpp (148 in tip of tree):

static bool gPrintStartupSpew;

and change it to

static bool gPrintStartupSpew = true;

then when SampleApp is run from the command line it should print some info from the GL driver such as the RENDERER and VERSION strings.

Brian


--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To post to this group, send email to skia-d...@googlegroups.com.
To unsubscribe from this group, send email to skia-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skia-discuss?hl=en.

Elliot Poger

unread,
May 31, 2012, 9:32:06 AM5/31/12
to skia-d...@googlegroups.com, ratnak...@gmail.com, Brian Salomon
I think the output of the following commands might also be helpful:

dpkg -l | grep mesa
glxinfo    # this is part of the mesa-utils package

Ratnakar Pai

unread,
May 31, 2012, 1:41:03 PM5/31/12
to Elliot Poger, skia-d...@googlegroups.com
Hi,
   Please find the logs for the startupSpew/dpkg and glxinfo attached.
TIA,
Ratnakar
logs.zip

Brian Salomon

unread,
May 31, 2012, 2:38:04 PM5/31/12
to skia-d...@googlegroups.com, Elliot Poger
Hi Ratnakar,

It appears to me that there is some issue with your driver in texture uploading. I seem to recall an issue with GL_EXT_texture_storage on some ATI GPUs. You might try commenting out this bit in GrGLCaps.cpp:
    // Tex storage is in desktop 4.2 and can be an extension to desktop or ES.
    fTexStorageSupport = (kDesktop_GrGLBinding == binding &&
                          version >= GR_GL_VER(4,2)) ||
                         ctxInfo.hasExtension("GL_ARB_texture_storage") ||
                         ctxInfo.hasExtension("GL_EXT_texture_storage");

Also, it would probably be helpful to check the URL "chrome://gpu" in Chrome (or Chromium) and see if your GPU/driver combination has been blacklisted for known issues with Chrome.

Brian

Ratnakar Pai

unread,
May 31, 2012, 8:57:22 PM5/31/12
to skia-d...@googlegroups.com, Elliot Poger
Thanks! this works. Attached is the chrome gpu report. Except the canvas(which it says is unstable on linux) all features are hardware accelerated.
Cheers,
Ratnakar
chrome gpu.html.zip

Brian Salomon

unread,
Jun 1, 2012, 8:33:33 AM6/1/12
to skia-d...@googlegroups.com, Elliot Poger
On Thu, May 31, 2012 at 8:57 PM, Ratnakar Pai <ratnak...@gmail.com> wrote:
Thanks! this works. Attached is the chrome gpu report. Except the canvas(which it says is unstable on linux) all features are hardware accelerated.
Cheers,
Ratnakar


Glad that worked for you! I believe that chrome doesn't use the texture storage extension on Linux and so that may be why the driver isn't blacklisted for GPU features.

Brian
Reply all
Reply to author
Forward
0 new messages