webGL in chrome
Evan Martin
evan at chromium.org
Mon Feb 4 17:20:53 UTC 2013
If it helps any, here's the code that produces that error, which is
testing for a specific GL feature.
const GLint kMinRenderbufferSize = 512; // GL says 1 pixel!
GLint max_renderbuffer_size = 0;
if (!QueryGLFeature(
GL_MAX_RENDERBUFFER_SIZE, kMinRenderbufferSize,
&max_renderbuffer_size)) {
LOG(ERROR) << "ContextGroup::Initialize failed because maximum "
<< "renderbuffer size too small.";
return false;
}
https://code.google.com/p/chromium/codesearch#chrome/src/gpu/command_buffer/service/context_group.cc&q=context_group.cc&sq=
On Sat, Feb 2, 2013 at 9:31 AM, J.R. Oldroyd <fbsd at opal.com> wrote:
> Hi all,
>
> I am trying to enable webGL.
>
> Sys here is 9.1-REL, video is radeon. Chrome is chromium-24.0.1312.57.
>
> Chrome's chrome://gpu was reporting red "Unavailable. Hardware
> acceleration disabled" for most of the items. The error log showed my
> glx was < 1.3. glxinfo showed server was 1.2.
>
> Fixed that by adding WITH_NEW_XORG to /etc/make.conf and rebuilding
> ports graphics/libdrm, graphics/dri, graphics/libGL,
> x11-servers/xorg-server and x11-drivers/xf86-video-ati and now have
> glx 1.4 for both client and server. In chrome://gpu all entries now
> show green "Hardware acceleration enabled" except for Panel fitting.
>
> However, webGL pages still report that the browser does not support
> webGL and there are repeated messages in the log:
>
> [81426:255882240:0201/221740:ERROR:context_group.cc(92)] :
> ContextGroup::Initialize failed because maximum renderbuffer size too
> small.
> [81426:255882240:0201/221740:ERROR:gles2_cmd_decoder.cc(2012)]
> : GpuScheduler::InitializeCommon failed because group failed to
> initialize.
>
> In the chrome://flags settings, I have enabled "Override software
> rendering list", "GPU compositing on all pages" and "Threaded
> compositing".
>
> Is there something else that I need to recompile? Or some other flag
> to set to increase this renderbuffer size?
>
> FWIW, all the graphics/mesa-demos programs run well.
>
> Thanks,
> -jr
> _______________________________________________
> freebsd-chromium at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chromium
> To unsubscribe, send any mail to "freebsd-chromium-unsubscribe at freebsd.org"
More information about the freebsd-chromium
mailing list