Skip to content

community/vkd3d: attempt to fix build on arm

Sören Tempel requested to merge nmeum/aports:vkd3d-armv7-fix into master

Buildlog: https://build.alpinelinux.org/buildlogs/build-3-12-armv7/community/vkd3d/vkd3d-1.1-r0.log

libs/vkd3d-utils/vkd3d_utils_main.c:90:1: warning: 'force_align_arg_pointer' attribute directive ignored [-Wattributes]
In file included from libs/vkd3d/utils.c:19:
libs/vkd3d/vkd3d_private.h:680:54: error: 'VK_PIPELINE_BIND_POINT_RANGE_SIZE' undeclared here (not in a function); did you mean 'VK_PIPELINE_BIND_POINT_MAX_ENUM'?
  680 |     struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_PIPELINE_BIND_POINT_MAX_ENUM
In file included from libs/vkd3d/state.c:20:
libs/vkd3d/vkd3d_private.h:680:54: error: 'VK_PIPELINE_BIND_POINT_RANGE_SIZE' undeclared here (not in a function); did you mean 'VK_PIPELINE_BIND_POINT_MAX_ENUM'?
  680 |     struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_PIPELINE_BIND_POINT_MAX_ENUM
In file included from libs/vkd3d/resource.c:19:
libs/vkd3d/vkd3d_private.h:680:54: error: 'VK_PIPELINE_BIND_POINT_RANGE_SIZE' undeclared here (not in a function); did you mean 'VK_PIPELINE_BIND_POINT_MAX_ENUM'?
  680 |     struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_PIPELINE_BIND_POINT_MAX_ENUM
In file included from libs/vkd3d/command.c:20:
libs/vkd3d/vkd3d_private.h:680:54: error: 'VK_PIPELINE_BIND_POINT_RANGE_SIZE' undeclared here (not in a function); did you mean 'VK_PIPELINE_BIND_POINT_MAX_ENUM'?
  680 |     struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_PIPELINE_BIND_POINT_MAX_ENUM
In file included from libs/vkd3d/device.c:19:
libs/vkd3d/vkd3d_private.h:680:54: error: 'VK_PIPELINE_BIND_POINT_RANGE_SIZE' undeclared here (not in a function); did you mean 'VK_PIPELINE_BIND_POINT_MAX_ENUM'?
  680 |     struct vkd3d_pipeline_bindings pipeline_bindings[VK_PIPELINE_BIND_POINT_RANGE_SIZE];
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_PIPELINE_BIND_POINT_MAX_ENUM

Patch from https://github.com/HansKristian-Work/vkd3d/commit/8e7bf8a5c3e004763a62822ff2d79cf76907b712 but required rebase.

Edited by Sören Tempel

Merge request reports

Loading