mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
ci: Build d3d12 gallium driver in debian-x86_32
Adding d3d12 to this ci build will prevent issues such as #6708 or fixes like !26363 from happening again in the future. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26447>
This commit is contained in:
parent
ebaede788e
commit
936dd81ed9
7 changed files with 24 additions and 8 deletions
|
|
@ -614,7 +614,7 @@ debian-x86_32:
|
||||||
BUILDTYPE: debug
|
BUILDTYPE: debug
|
||||||
CROSS: i386
|
CROSS: i386
|
||||||
VULKAN_DRIVERS: intel,amd,swrast,virtio
|
VULKAN_DRIVERS: intel,amd,swrast,virtio
|
||||||
GALLIUM_DRIVERS: "iris,nouveau,r300,r600,radeonsi,swrast,virgl,zink,crocus"
|
GALLIUM_DRIVERS: "iris,nouveau,r300,r600,radeonsi,swrast,virgl,zink,crocus,d3d12"
|
||||||
LLVM_VERSION: 15
|
LLVM_VERSION: 15
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D vulkan-layers=device-select,overlay
|
-D vulkan-layers=device-select,overlay
|
||||||
|
|
|
||||||
15
.gitlab-ci/container/build-directx-headers.sh
Normal file
15
.gitlab-ci/container/build-directx-headers.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
|
# When changing this file, you need to bump the following
|
||||||
|
# .gitlab-ci/image-tags.yml tags:
|
||||||
|
# DEBIAN_BUILD_TAG
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
git clone https://github.com/microsoft/DirectX-Headers -b v1.711.3-preview --depth 1
|
||||||
|
pushd DirectX-Headers
|
||||||
|
meson setup build --backend=ninja --buildtype=release -Dbuild-test=false $EXTRA_MESON_ARGS
|
||||||
|
meson install -C build
|
||||||
|
popd
|
||||||
|
rm -rf DirectX-Headers
|
||||||
|
|
@ -76,6 +76,8 @@ export EXTRA_MESON_ARGS="--cross-file=/cross_file-${arch}.txt -D libdir=lib/${MU
|
||||||
|
|
||||||
. .gitlab-ci/container/build-wayland.sh
|
. .gitlab-ci/container/build-wayland.sh
|
||||||
|
|
||||||
|
. .gitlab-ci/container/build-directx-headers.sh
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y "${EPHEMERAL[@]}"
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,7 @@ rm -rf $XORGMACROS_VERSION
|
||||||
|
|
||||||
. .gitlab-ci/container/build-shader-db.sh
|
. .gitlab-ci/container/build-shader-db.sh
|
||||||
|
|
||||||
git clone https://github.com/microsoft/DirectX-Headers -b v1.711.3-preview --depth 1
|
. .gitlab-ci/container/build-directx-headers.sh
|
||||||
pushd DirectX-Headers
|
|
||||||
meson setup build --backend=ninja --buildtype=release -Dbuild-test=false
|
|
||||||
meson install -C build
|
|
||||||
popd
|
|
||||||
rm -rf DirectX-Headers
|
|
||||||
|
|
||||||
python3 -m pip install --break-system-packages -r .gitlab-ci/lava/requirements.txt
|
python3 -m pip install --break-system-packages -r .gitlab-ci/lava/requirements.txt
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ variables:
|
||||||
DEBIAN_BASE_TAG: "2023-11-18-deqp-runner"
|
DEBIAN_BASE_TAG: "2023-11-18-deqp-runner"
|
||||||
|
|
||||||
DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
|
DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
|
||||||
DEBIAN_BUILD_TAG: "2023-11-20-meson"
|
DEBIAN_BUILD_TAG: "2023-12-01-debian-x86_32-d3d12_2"
|
||||||
|
|
||||||
DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base"
|
DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1048,6 +1048,7 @@ else
|
||||||
'-fno-trapping-math',
|
'-fno-trapping-math',
|
||||||
'-Qunused-arguments',
|
'-Qunused-arguments',
|
||||||
'-fno-common',
|
'-fno-common',
|
||||||
|
'-Wno-unknown-pragmas',
|
||||||
# Clang
|
# Clang
|
||||||
'-Wno-microsoft-enum-value',
|
'-Wno-microsoft-enum-value',
|
||||||
'-Wno-unused-function',
|
'-Wno-unused-function',
|
||||||
|
|
@ -1067,6 +1068,7 @@ else
|
||||||
# to the memory before the constructor as "dead stores".
|
# to the memory before the constructor as "dead stores".
|
||||||
# For now we disable this optimization.
|
# For now we disable this optimization.
|
||||||
'-flifetime-dse=1',
|
'-flifetime-dse=1',
|
||||||
|
'-Wno-unknown-pragmas',
|
||||||
# Clang
|
# Clang
|
||||||
'-Wno-microsoft-enum-value',
|
'-Wno-microsoft-enum-value',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@
|
||||||
#ifndef D3D12_COMPILER_H
|
#ifndef D3D12_COMPILER_H
|
||||||
#define D3D12_COMPILER_H
|
#define D3D12_COMPILER_H
|
||||||
|
|
||||||
|
#include "d3d12_common.h"
|
||||||
|
|
||||||
#include "dxil_nir_lower_int_samplers.h"
|
#include "dxil_nir_lower_int_samplers.h"
|
||||||
|
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue