mirror of
https://github.com/lobomfz/VIctory-xmem.git
synced 2026-12-06 05:48:38 +00:00
build(radv): hash the patch's compiler part the same under any git
- setup.sh stopped a user at the Mesa step with 'the Mesa version or the compiler part of patches/mesa.patch changed' and the hash b665493a53f02e3c: that is this patch's own diff with object names of 8 digits where they are 7 here (a plain git diff shortens them by how many objects the checkout holds, and by core.abbrev) - radv_compiler now writes the diff with full object names, fixed prefixes, context and algorithm; the pinned hash is b9ff86045cb41bb1 for the same patch - the id RADV keys its pipelines on is unchanged: no pipeline is made again - checked: ./setup.sh mesa passes as it is and with core.abbrev=8, the hash is the same under ten git settings that changed it before, the driver's file is the same
This commit is contained in:
10
setup.sh
10
setup.sh
@ -13,7 +13,7 @@ MESA=(https://gitlab.freedesktop.org/mesa/mesa.git mesa-26.3.1)
|
||||
# the hash of the Mesa version and the patch's parts that reach a compiled
|
||||
# shader. step_mesa stops when the hash no longer matches: give a new id (any
|
||||
# 40 hex digits) with the hash it prints, and the pipelines are made again.
|
||||
RADV_BUILD_ID=(94a2da49204f9423889fc7107d8d604091e2688e 943bb871ebf554a9)
|
||||
RADV_BUILD_ID=(94a2da49204f9423889fc7107d8d604091e2688e b9ff86045cb41bb1)
|
||||
VKD3D=(https://github.com/HansKristian-Work/vkd3d-proton 71cae091b06571e51446cf2a937f0b04c237c04d)
|
||||
WINE=(https://gitlab.winehq.org/wine/wine.git)
|
||||
XWIN=(https://github.com/Jake-Shadle/xwin/releases/download/0.10.0/xwin-0.10.0-x86_64-unknown-linux-musl.tar.gz d870eb4b2f390878af6da1ccd3cf321d22fcb72720984853b4be732ae597fc88)
|
||||
@ -151,11 +151,15 @@ step_dlls() {
|
||||
}
|
||||
|
||||
# The patch outside the winsys, the memory calls and the command buffer: the
|
||||
# parts whose change can change a compiled shader.
|
||||
# parts whose change can change a compiled shader. Written the same whatever
|
||||
# the user's git is set to and however many objects the checkout holds (the
|
||||
# short object names of a plain diff were 7 digits here and 8 elsewhere).
|
||||
radv_compiler() {
|
||||
{
|
||||
echo "${MESA[1]}"
|
||||
git -C "$deps/mesa" diff HEAD -- . ':!src/amd/vulkan/winsys' ':!src/amd/vulkan/radv_device_memory.c' \
|
||||
git -C "$deps/mesa" diff --full-index --no-color --no-ext-diff --no-textconv --no-renames \
|
||||
--src-prefix=a/ --dst-prefix=b/ -U3 --diff-algorithm=myers --indent-heuristic \
|
||||
HEAD -- . ':!src/amd/vulkan/winsys' ':!src/amd/vulkan/radv_device_memory.c' \
|
||||
':!src/amd/vulkan/radv_radeon_winsys.h' ':!src/amd/vulkan/radv_um.h' \
|
||||
':!src/amd/vulkan/radv_cmd_buffer.c' ':!src/amd/vulkan/radv_cmd_buffer.h'
|
||||
} | sha256sum | cut -c1-16
|
||||
|
||||
Reference in New Issue
Block a user