mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
mapi: add InternalInvalidateFramebufferAncillaryMESA
this allows glthread to handle ancillary buffer invalidation Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21910>
This commit is contained in:
parent
aa9d823318
commit
0c7994bb2d
4 changed files with 17 additions and 0 deletions
|
|
@ -12972,6 +12972,10 @@
|
||||||
<function name="DrawElementsInstancedBaseVertexBaseInstanceDrawID"
|
<function name="DrawElementsInstancedBaseVertexBaseInstanceDrawID"
|
||||||
es1="1.0" es2="2.0" marshal="custom">
|
es1="1.0" es2="2.0" marshal="custom">
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
|
<!-- Internal function for glthread to implement ancillary buffer invalidation. -->
|
||||||
|
<function name="InternalInvalidateFramebufferAncillaryMESA" es2="3.0">
|
||||||
|
</function>
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<xi:include href="OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
|
<xi:include href="OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
|
||||||
|
|
|
||||||
|
|
@ -1703,6 +1703,7 @@ offsets = {
|
||||||
"MultiDrawElementsUserBuf": 1667,
|
"MultiDrawElementsUserBuf": 1667,
|
||||||
"DrawArraysInstancedBaseInstanceDrawID": 1668,
|
"DrawArraysInstancedBaseInstanceDrawID": 1668,
|
||||||
"DrawElementsInstancedBaseVertexBaseInstanceDrawID": 1669,
|
"DrawElementsInstancedBaseVertexBaseInstanceDrawID": 1669,
|
||||||
|
"InternalInvalidateFramebufferAncillaryMESA": 1670,
|
||||||
}
|
}
|
||||||
|
|
||||||
functions = [
|
functions = [
|
||||||
|
|
|
||||||
|
|
@ -5524,6 +5524,15 @@ _mesa_InvalidateFramebuffer(GLenum target, GLsizei numAttachments,
|
||||||
discard_framebuffer(ctx, fb, numAttachments, attachments);
|
discard_framebuffer(ctx, fb, numAttachments, attachments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_InternalInvalidateFramebufferAncillaryMESA(void)
|
||||||
|
{
|
||||||
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
|
|
||||||
|
struct gl_framebuffer *fb = get_framebuffer_target(ctx, GL_FRAMEBUFFER);
|
||||||
|
discard_attachments(ctx, fb, BITFIELD_BIT(BUFFER_DEPTH) | BITFIELD_BIT(BUFFER_STENCIL));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
_mesa_InvalidateNamedFramebufferData(GLuint framebuffer,
|
_mesa_InvalidateNamedFramebufferData(GLuint framebuffer,
|
||||||
|
|
|
||||||
|
|
@ -133,4 +133,7 @@ _mesa_bind_framebuffers(struct gl_context *ctx,
|
||||||
struct gl_framebuffer *newDrawFb,
|
struct gl_framebuffer *newDrawFb,
|
||||||
struct gl_framebuffer *newReadFb);
|
struct gl_framebuffer *newReadFb);
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_InternalInvalidateFramebufferAncillaryMESA(void);
|
||||||
|
|
||||||
#endif /* FBOBJECT_H */
|
#endif /* FBOBJECT_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue