[Mesa-dev] [PATCH] mesa glthread: allow asynchronous pixel transfer operation when a buffer is bound

Markus Wick markus at selfnet.de
Fri Mar 17 12:11:31 UTC 2017


Hi gregory,

Am 2017-03-17 10:25, schrieb Gregory Hainaut:
> diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c
> index f8cad30..43a70d4 100644
> --- a/src/mesa/main/marshal.c
> +++ b/src/mesa/main/marshal.c
> @@ -214,6 +218,12 @@ track_vbo_binding(struct gl_context *ctx, GLenum
> target, GLuint buffer)
>         */
>        glthread->element_array_is_vbo = (buffer != 0);
>        break;
> +   case GL_PIXEL_UNPACK_BUFFER:
> +      glthread->pixel_unpack_buffer_bound = (buffer != 0);
> +      break;
> +   case GL_PIXEL_PACK_BUFFER:
> +      glthread->pixel_pack_buffer_bound = (buffer != 0);
> +      break;
>     }
>  }
> 

I wonder what shall happen if buffer is not 0, but neither a valid 
buffer object. So the glBindBuffer call will fail, and there would still 
be no buffer bound.
The comment above this function explains it very well.

degasus


More information about the mesa-dev mailing list