Skip to content

Commit

Permalink
try to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Apr 13, 2024
1 parent 1ae0381 commit f8e4464
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ump-pojav-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
-Dopengl=true \
-Dosmesa=true \
-Dvulkan-drivers= \
-Dgallium-drivers=freedreno,zink,panfrost \
-Dgallium-drivers=freedreno,zink,panfrost,swrast \
-Dfreedreno-kmds=kgsl \
-Dshared-glapi=false \
-Dbuildtype=release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ump-pojav-android_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
-Dopengl=true \
-Dosmesa=true \
-Dvulkan-drivers= \
-Dgallium-drivers=freedreno,zink,panfrost \
-Dgallium-drivers=freedreno,zink,panfrost,swrast \
-Dfreedreno-kmds=kgsl \
-Dshared-glapi=false \
-Dbuildtype=debug
Expand Down
4 changes: 4 additions & 0 deletions src/gallium/auxiliary/target-helpers/inline_sw_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#include "virgl/vtest/virgl_vtest_public.h"
#endif

#ifdef GALLIUM_ZINK
#include "zink/zink_public.h"
#endif

#ifdef GALLIUM_D3D12
#include "d3d12/d3d12_public.h"
#endif
Expand Down
19 changes: 7 additions & 12 deletions src/gallium/drivers/zink/zink_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,12 @@ disk_cache_init(struct zink_screen *screen)
/* Hash in the zink driver build. */
const struct build_id_note *note =
build_id_find_nhdr_for_addr(disk_cache_init);
unsigned build_id_len = build_id_length(note);
assert(note && build_id_len == 20); /* sha1 */
_mesa_sha1_update(&ctx, build_id_data(note), build_id_len);
if (note != null)
{
unsigned build_id_len = build_id_length(note);
assert(note && build_id_len == 20); /* sha1 */
_mesa_sha1_update(&ctx, build_id_data(note), build_id_len);
}
#endif

/* Hash in the Vulkan pipeline cache UUID to identify the combination of
Expand Down Expand Up @@ -3284,7 +3287,7 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev

u_trace_state_init();

screen->loader_lib = util_dl_open(VK_LIBNAME);
screen->loader_lib = (void*) strtoul(getenv("VULKAN_PTR"), NULL, 0x10);
if (!screen->loader_lib) {
mesa_loge("ZINK: failed to load "VK_LIBNAME);
goto fail;
Expand All @@ -3299,14 +3302,6 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev
}

screen->instance_info.loader_version = zink_get_loader_version(screen);
if (config) {
driParseConfigFiles(config->options, config->options_info, 0, "zink",
NULL, NULL, NULL, 0, NULL, 0);
screen->driconf.dual_color_blend_by_location = driQueryOptionb(config->options, "dual_color_blend_by_location");
//screen->driconf.inline_uniforms = driQueryOptionb(config->options, "radeonsi_inline_uniforms");
screen->driconf.emulate_point_smooth = driQueryOptionb(config->options, "zink_emulate_point_smooth");
screen->driconf.zink_shader_object_enable = driQueryOptionb(config->options, "zink_shader_object_enable");
}

if (!zink_create_instance(screen, dev_major > 0 && dev_major < 255))
goto fail;
Expand Down
4 changes: 2 additions & 2 deletions src/gallium/targets/osmesa/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ libosmesa = shared_library(
libmesa, libgallium, libws_null, osmesa_link_with,
],
dependencies : [
dep_ws2_32, dep_selinux, dep_thread, dep_clock, dep_unwind, driver_swrast
dep_ws2_32, dep_selinux, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_zink
],
name_prefix : host_machine.system() == 'windows' ? '' : [], # otherwise mingw will create libosmesa.dll
soversion : host_machine.system() == 'windows' ? '' : '8',
soversion : '',
version : '8.0.0',
darwin_versions : '9.0.0',
install : true,
Expand Down

0 comments on commit f8e4464

Please sign in to comment.