mesa: add KHR_no_error support for unmap buffer functions
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
<param name="access" type="GLbitfield" />
|
||||
</function>
|
||||
|
||||
<function name="UnmapNamedBuffer">
|
||||
<function name="UnmapNamedBuffer" no_error="true">
|
||||
<return type="GLboolean" />
|
||||
<param name="buffer" type="GLuint" />
|
||||
</function>
|
||||
|
||||
@@ -5104,7 +5104,7 @@
|
||||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
||||
<function name="UnmapBuffer" es2="3.0">
|
||||
<function name="UnmapBuffer" es2="3.0" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<return type="GLboolean"/>
|
||||
<glx ignore="true"/>
|
||||
|
||||
@@ -2066,6 +2066,16 @@ validate_and_unmap_buffer(struct gl_context *ctx,
|
||||
return unmap_buffer(ctx, bufObj);
|
||||
}
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapBuffer_no_error(GLenum target)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_buffer_object **bufObjPtr = get_buffer_target(ctx, target);
|
||||
struct gl_buffer_object *bufObj = *bufObjPtr;
|
||||
|
||||
return unmap_buffer(ctx, bufObj);
|
||||
}
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapBuffer(GLenum target)
|
||||
{
|
||||
@@ -2079,6 +2089,15 @@ _mesa_UnmapBuffer(GLenum target)
|
||||
return validate_and_unmap_buffer(ctx, bufObj, "glUnmapBuffer");
|
||||
}
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapNamedBuffer_no_error(GLuint buffer)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_buffer_object *bufObj = _mesa_lookup_bufferobj(ctx, buffer);
|
||||
|
||||
return unmap_buffer(ctx, bufObj);
|
||||
}
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapNamedBuffer(GLuint buffer)
|
||||
{
|
||||
|
||||
@@ -252,9 +252,13 @@ _mesa_ClearNamedBufferSubData(GLuint buffer, GLenum internalformat,
|
||||
GLenum format, GLenum type,
|
||||
const GLvoid *data);
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapBuffer_no_error(GLenum target);
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapBuffer(GLenum target);
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapNamedBuffer_no_error(GLuint buffer);
|
||||
GLboolean GLAPIENTRY
|
||||
_mesa_UnmapNamedBuffer(GLuint buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user