mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
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:
parent
9ac3e3a072
commit
5c40d9bec1
2 changed files with 37 additions and 0 deletions
35
src/gallium/frontends/dri/kopper_stubs.c
Normal file
35
src/gallium/frontends/dri/kopper_stubs.c
Normal 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;
|
||||
}
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue