dri: add kopper stubs to avoid build failures

Fixes: 62847d14b5 ("glx: delete DRI_KOPPER")

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30454>
This commit is contained in:
Mike Blumenkrantz 2024-07-31 17:31:14 -04:00 committed by Marge Bot
parent 9ac3e3a072
commit 5c40d9bec1
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
/* SPDX-License-Identifier: MIT */
#include "dri_util.h"
int64_t
kopperSwapBuffers(__DRIdrawable *dPriv, uint32_t flush_flags)
{
return 0;
}
int64_t
kopperSwapBuffersWithDamage(__DRIdrawable *dPriv, uint32_t flush_flags, int nrects, const int *rects)
{
return 0;
}
__DRIdrawable *
kopperCreateNewDrawable(__DRIscreen *psp,
const __DRIconfig *config,
void *data,
__DRIkopperDrawableInfo *info)
{
return NULL;
}
void
kopperSetSwapInterval(__DRIdrawable *dPriv, int interval)
{
}
int
kopperQueryBufferAge(__DRIdrawable *dPriv)
{
return 0;
}

View file

@ -40,6 +40,8 @@ if with_gallium_zink and not with_platform_android
endif
files_libdri += files('kopper.c')
deps_for_libdri += vulkan_wsi_deps
else
files_libdri += files('kopper_stubs.c')
endif
libdri = static_library(