rusticl: move mesa_version_string out of the inline wrapper

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265>
This commit is contained in:
Karol Herbst 2023-09-17 12:42:58 +02:00 committed by Marge Bot
parent d2dfb3350f
commit c46cd101e1
4 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,4 @@
#include "rusticl_mesa_inline_bindings_wrapper.h"
#include "git_sha1.h"
void
blob_finish(struct blob *blob)
@ -49,12 +48,6 @@ util_format_pack_rgba(enum pipe_format format, void *dst, const void *src, unsig
return __util_format_pack_rgba(format, dst, src, w);
}
const char*
mesa_version_string(void)
{
return PACKAGE_VERSION MESA_GIT_SHA1;
}
bool
glsl_type_is_sampler(const struct glsl_type *t)
{

View File

@ -41,7 +41,6 @@
void blob_finish(struct blob *);
char *mesa_bytes_to_hex(char *buf, const uint8_t *hex_id, unsigned size);
bool disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx);
const char* mesa_version_string(void);
nir_function_impl *nir_shader_get_entrypoint(const nir_shader *shader);
void pipe_resource_reference(struct pipe_resource **dst, struct pipe_resource *src);
bool should_skip_nir(const char *);

View File

@ -1,5 +1,7 @@
#include "rusticl_system_bindings.h"
#include "git_sha1.h"
FILE *
stdout_ptr(void)
{
@ -11,3 +13,9 @@ stderr_ptr(void)
{
return stderr;
}
const char*
mesa_version_string(void)
{
return PACKAGE_VERSION MESA_GIT_SHA1;
}

View File

@ -2,3 +2,5 @@
FILE *stdout_ptr(void);
FILE *stderr_ptr(void);
const char* mesa_version_string(void);