diff --git a/src/gallium/frontends/dri/kopper_stubs.c b/src/gallium/frontends/dri/kopper_stubs.c new file mode 100644 index 00000000000..3a5292ba446 --- /dev/null +++ b/src/gallium/frontends/dri/kopper_stubs.c @@ -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; +} diff --git a/src/gallium/frontends/dri/meson.build b/src/gallium/frontends/dri/meson.build index 6448d9386fd..45e24e970f0 100644 --- a/src/gallium/frontends/dri/meson.build +++ b/src/gallium/frontends/dri/meson.build @@ -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(