[Mesa-dev] [PATCH 05/23] main: Add entry point for CreateBuffers.
Martin Peres
martin.peres at linux.intel.com
Thu Apr 2 01:02:15 PDT 2015
On 01/04/15 20:30, Laura Ekstrand wrote:
> Yes, you are right. Thanks for the catch. I will send a fix patch to
> the mailing list.
>
> Laura
>
> On Mon, Mar 30, 2015 at 7:10 PM, Ilia Mirkin <imirkin at alum.mit.edu
> <mailto:imirkin at alum.mit.edu>> wrote:
>
> On Wed, Feb 11, 2015 at 9:05 PM, Laura Ekstrand
> <laura at jlekstrand.net <mailto:laura at jlekstrand.net>> wrote:
> > for (i = 0; i < n; i++) {
> > - _mesa_HashInsert(ctx->Shared->BufferObjects, first + i,
> > - &DummyBufferObject);
> > - buffer[i] = first + i;
> > + buffers[i] = first + i;
> > + if (dsa) {
> > + ASSERT(ctx->Driver.NewBufferObject);
> > + buf = ctx->Driver.NewBufferObject(ctx, buffers[i]);
> > + if (!buf) {
> > + _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func);
> > + return;
>
> Aren't you holding the shared mutex at this point? I think you need to
> free it...
>
Please make it a v2 of this patch.
>
>
> > + }
> > + }
> > + else
> > + buf = &DummyBufferObject;
> > +
> > + _mesa_HashInsert(ctx->Shared->BufferObjects, buffers[i], buf);
> > }
> >
> > mtx_unlock(&ctx->Shared->Mutex);
>
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list