mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
frontend/dri: replace the CopySubBuffer callback with a direct call
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19741>
This commit is contained in:
parent
2941eacb22
commit
449a35a397
3 changed files with 1 additions and 6 deletions
|
|
@ -82,9 +82,6 @@ typedef struct __DRIDriverVtableExtensionRec {
|
|||
int width, int height);
|
||||
|
||||
void (*ReleaseBuffer) (__DRIscreen *screenPrivate, __DRIbuffer *buffer);
|
||||
|
||||
void (*CopySubBuffer)(__DRIdrawable *driDrawPriv, int x, int y,
|
||||
int w, int h);
|
||||
} __DRIDriverVtableExtension;
|
||||
|
||||
struct __DRIconfigRec {
|
||||
|
|
|
|||
|
|
@ -645,7 +645,6 @@ static const struct __DRIDriverVtableExtensionRec galliumsw_vtable = {
|
|||
.InitScreen = drisw_init_screen,
|
||||
.CreateBuffer = drisw_create_buffer,
|
||||
.SwapBuffers = drisw_swap_buffers,
|
||||
.CopySubBuffer = drisw_copy_sub_buffer,
|
||||
};
|
||||
|
||||
/* swrast copy sub buffer entrypoint. */
|
||||
|
|
@ -654,7 +653,7 @@ static void driswCopySubBuffer(__DRIdrawable *pdp, int x, int y,
|
|||
{
|
||||
assert(pdp->driScreenPriv->swrast_loader);
|
||||
|
||||
pdp->driScreenPriv->driver->CopySubBuffer(pdp, x, y, w, h);
|
||||
drisw_copy_sub_buffer(pdp, x, y, w, h);
|
||||
}
|
||||
|
||||
/* for swrast only */
|
||||
|
|
|
|||
|
|
@ -1048,7 +1048,6 @@ static const struct __DRIDriverVtableExtensionRec galliumvk_vtable = {
|
|||
.InitScreen = kopper_init_screen,
|
||||
.CreateBuffer = kopper_create_buffer,
|
||||
.SwapBuffers = kopper_swap_buffers,
|
||||
.CopySubBuffer = NULL,
|
||||
};
|
||||
|
||||
const __DRIextension *galliumvk_driver_extensions[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue