Projects
home:Jingwiw:MultiMedia
Mesa
_service:tar_scm:llvmpipe-make-unnamed-global-h...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:llvmpipe-make-unnamed-global-have-internal-linkage.patch of Package Mesa
From 3148f08bd0207a8bd50ff5c8b82d7a5b0871c3d1 Mon Sep 17 00:00:00 2001 From: Alex Fan <alex.fan.q@gmail.com> Date: Mon, 28 Nov 2022 22:29:44 +1100 Subject: [PATCH] llvmpipe: make unnamed global have internal linkage work around bug https://github.com/llvm/llvm-project/issues/54813 Being unnamed makes it not useable from other module, therefore changing to internal linkage is safe Signed-off-by: Alex Fan <alex.fan.q@gmail.com> --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 4e0b693..5b29610 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -3320,6 +3320,7 @@ generate_fragment(struct llvmpipe_context *lp, LLVMValueRef glob_sample_pos = LLVMAddGlobal(gallivm->module, LLVMArrayType(flt_type, key->coverage_samples * 2), ""); + LLVMSetLinkage(glob_sample_pos, LLVMInternalLinkage); LLVMValueRef sample_pos_array; if (key->multisample && key->coverage_samples == 4) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2