Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 09:20:52 -0800
From:      Evan Martin <evan@chromium.org>
To:        "J.R. Oldroyd" <fbsd@opal.com>
Cc:        freebsd-chromium@freebsd.org
Subject:   Re: webGL in chrome
Message-ID:  <CAFzwtj3pX2M3aehfFmevofFqNGp8yoj20yiAVB%2BJZbJMKT==kQ@mail.gmail.com>
In-Reply-To: <20130202123101.59c2ee40@shibato>
References:  <20130202123101.59c2ee40@shibato>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chromium
> To unsubscribe, send any mail to "freebsd-chromium-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFzwtj3pX2M3aehfFmevofFqNGp8yoj20yiAVB%2BJZbJMKT==kQ>