• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "rusticl_mesa_inline_bindings_wrapper.h"
2 #include "git_sha1.h"
3 
4 void
blob_finish(struct blob * blob)5 blob_finish(struct blob *blob)
6 {
7     __blob_finish(blob);
8 }
9 
10 bool
disk_cache_get_function_identifier(void * ptr,struct mesa_sha1 * ctx)11 disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
12 {
13    return __disk_cache_get_function_identifier(ptr, ctx);
14 }
15 
16 char *
mesa_bytes_to_hex(char * buf,const uint8_t * hex_id,unsigned size)17 mesa_bytes_to_hex(char *buf, const uint8_t *hex_id, unsigned size)
18 {
19    return __mesa_bytes_to_hex(buf, hex_id, size);
20 }
21 
22 nir_function_impl *
nir_shader_get_entrypoint(const nir_shader * shader)23 nir_shader_get_entrypoint(const nir_shader *shader)
24 {
25    return __nir_shader_get_entrypoint_wraped(shader);
26 }
27 
28 void
pipe_resource_reference(struct pipe_resource ** dst,struct pipe_resource * src)29 pipe_resource_reference(struct pipe_resource **dst, struct pipe_resource *src)
30 {
31    __pipe_resource_reference_wraped(dst, src);
32 }
33 
34 bool
should_skip_nir(const char * name)35 should_skip_nir(const char *name)
36 {
37     return __should_skip_nir(name);
38 }
39 
40 bool
should_print_nir(nir_shader * shader)41 should_print_nir(nir_shader *shader)
42 {
43     return __should_print_nir(shader);
44 }
45 
46 void
util_format_pack_rgba(enum pipe_format format,void * dst,const void * src,unsigned w)47 util_format_pack_rgba(enum pipe_format format, void *dst, const void *src, unsigned w)
48 {
49     return __util_format_pack_rgba(format, dst, src, w);
50 }
51 
52 const char*
mesa_version_string(void)53 mesa_version_string(void)
54 {
55     return PACKAGE_VERSION MESA_GIT_SHA1;
56 }
57 
58 bool
glsl_type_is_sampler(const struct glsl_type * t)59 glsl_type_is_sampler(const struct glsl_type *t)
60 {
61     return __glsl_type_is_sampler(t);
62 }
63 
64 bool
glsl_type_is_image(const struct glsl_type * t)65 glsl_type_is_image(const struct glsl_type *t)
66 {
67     return __glsl_type_is_image(t);
68 }
69 
70 bool
glsl_type_is_texture(const struct glsl_type * t)71 glsl_type_is_texture(const struct glsl_type *t)
72 {
73     return __glsl_type_is_texture(t);
74 }
75 
76 const struct glsl_type *
glsl_uint_type(void)77 glsl_uint_type(void)
78 {
79     return __glsl_uint_type();
80 }
81 
82 const struct glsl_type *
glsl_uint8_t_type(void)83 glsl_uint8_t_type(void)
84 {
85     return __glsl_uint8_t_type();
86 }
87 
88 const struct glsl_type *
glsl_uint64_t_type(void)89 glsl_uint64_t_type(void)
90 {
91     return __glsl_uint64_t_type();
92 }
93 
94 const struct glsl_type *
glsl_int16_t_type(void)95 glsl_int16_t_type(void)
96 {
97     return __glsl_int16_t_type();
98 }
99 
100 const struct glsl_type *
glsl_vector_type(enum glsl_base_type base_type,unsigned components)101 glsl_vector_type(enum glsl_base_type base_type, unsigned components)
102 {
103     return __glsl_vector_type(base_type, components);
104 }
105