Commit fca53c3f authored by Sören Tempel's avatar Sören Tempel
Browse files

community/vkd3d: attempt to fix build on arm

Fixes #11521
parent 9cbb9ba3
Pipeline #17689 passed with stages
in 1 minute and 40 seconds
From 8e7bf8a5c3e004763a62822ff2d79cf76907b712 Mon Sep 17 00:00:00 2001
From: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date: Mon, 4 May 2020 22:39:19 +0200
Subject: [PATCH] vkd3d: Do not use VK_PIPELINE_BIND_POINT_RANGE_SIZE.
These constants were removed in Vulkan 1.2.140 headers.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
---
libs/vkd3d/vkd3d_private.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h
index 6598ed7..36a89d7 100644
--- vkd3d-1.1.orig/libs/vkd3d/vkd3d_private.h 2020-05-09 19:13:34.016815130 +0200
+++ vkd3d-1.1/libs/vkd3d/vkd3d_private.h 2020-05-09 19:14:21.713489705 +0200
@@ -49,6 +49,8 @@
#define VKD3D_MAX_SHADER_STAGES 5u
+#define VKD3D_PIPELINE_BIND_POINT_COUNT 2u
+
struct d3d12_command_list;
struct d3d12_device;
@@ -677,7 +679,7 @@ struct d3d12_command_list
VkFramebuffer current_framebuffer;
VkPipeline current_pipeline;
VkRenderPass current_render_pass;
- struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
+ struct vkd3d_pipeline_bindings pipeline_bindings[VKD3D_PIPELINE_BIND_POINT_COUNT];
struct d3d12_pipeline_state *state;
......@@ -2,7 +2,7 @@
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=vkd3d
pkgver=1.1
pkgrel=0
pkgrel=1
pkgdesc="Direct3D 12 to Vulkan translation library"
url="https://www.winehq.org"
arch="all"
......@@ -10,7 +10,8 @@ license="LGPL-2.1-or-later"
makedepends="vulkan-headers vulkan-loader-dev spirv-headers spirv-tools-dev libxcb-dev
xcb-util-keysyms-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://dl.winehq.org/vkd3d/source/vkd3d-${pkgver}.tar.xz"
source="https://dl.winehq.org/vkd3d/source/vkd3d-${pkgver}.tar.xz
0001-vkd3d-Do-not-use-VK_PIPELINE_BIND_POINT_RANGE_SIZE.patch"
build() {
./configure \
......@@ -33,4 +34,5 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="e107612bdca95e998f9d819bdf74e4ffe1b4d400d250ab855c4ebf94b7d3f088b3221591fef03b1c6b8ecb030feb1673f74831bd8bd8edda2989d09a8846b0f7 vkd3d-1.1.tar.xz"
sha512sums="e107612bdca95e998f9d819bdf74e4ffe1b4d400d250ab855c4ebf94b7d3f088b3221591fef03b1c6b8ecb030feb1673f74831bd8bd8edda2989d09a8846b0f7 vkd3d-1.1.tar.xz
91b5a13f4afcad5dcda391d0d5724aca579c68604607cbd2d18c959aecea0717c4b2a5c36254bea6eab58594284428733800596c73d46dcbec127dc87aebc211 0001-vkd3d-Do-not-use-VK_PIPELINE_BIND_POINT_RANGE_SIZE.patch"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment