Tuesday, June 18, 2019

Re: vulkan ports

On Tue, Jun 18, 2019 at 06:16:34PM -0600, Thomas Frohwein wrote:
> Updated and fixed vulkan ports attached. Tested with vkQuake 1.02.1 and
> vkcube.
>
> [...]
> > glslang missing email address in MAINTAINER
>
> fixed
>
> > spirv-tools should use GH_TAGNAME v2019.3 [...]
>
> fixed
>
> > vulkan-loader patch-loader_CMakeLists_txt can drop
> > the second removal of -ldl in apple specific codepath
>
> fixed
>
> > I would add the NO_TEST parts, ignore the CONFIGURE_ARGS changes
> > and consider adjusting the installed python files which have
> > '#!/usr/bin/python3'.
>
> I added the NO_TEST parts where appropriate. I enabled do-test in
> glslang, but it currently fails one test because of the version of
> spirv-tools (1.0 expected, 1.3 found).
>
> Other ports that have tests require google testing suite present in the
> directory ${WRKSRC}/external at build time which I didn't add because
> this would increase complexity of the ports significantly, but comments
> would be appreciated.
>
> I incorporated the CONFIGURE_ARGS changes (make it easier to read IMO).
>
> Changed '#!/usr/bin/python3 -i' to '#!/usr/bin/env python3 -i'.
>
> > With your ports and a similiar update I tried yesterday I can't get
> > vulkan-validation-layers-1.1.106 to build with
> > vulkan-validation-layers-1.1.101 installed, with the earlier version
> > removed it builds:
>
> I ran into a similar issue when updating to 1.1.108.0 from 1.1.106.0. I
> modified the order of include directories in CMakeLists.txt and
> layers/CMakeLists.txt which fixed the issue.
>
> Ports with vulkan-* updated to sdk-1.1.108.0 attached. Tested with
> vkcube and vkQuake (briefly) and still working.
>
> ok?

Missing MAINTAINER in vulkan-headers.

This collection of ports no longer seems to work on inteldrm with ivy bridge.

spirv-headers-1.4.1 SPIRV-Headers
spirv-tools-2019.3 API and commands for processing SPIR-V
vulkan-headers-1.1.108.0 Vulkan header files
vulkan-loader-1.1.108.0 Vulkan ICD loader
vulkan-tools-1.1.108.0 Vulkan Utilities and Tools
vulkan-validation-layers-1.1.108.0 Vulkan Validation Layers

$ vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.108

INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
INTEL-MESA: warning: vulkan/anv_device.c:1269: FINISHME: Implement pop-free point clipping
/usr/ports/pobj/vulkan-tools-1.1.108.0/Vulkan-Tools-sdk-1.1.108.0/vulkaninfo/vulkaninfo.c:1128: failed with VK_ERROR_TOO_MANY_OBJECTS

$ vkcube
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
Segmentation fault (core dumped)

Core was generated by `vkcube'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000c04bed7225d in vkGetDeviceProcAddr () from /usr/local/lib/libvulkan.so.0.0
(gdb) bt
#0 0x00000c04bed7225d in vkGetDeviceProcAddr () from /usr/local/lib/libvulkan.so.0.0
#1 0x00000c0203e67a19 in main ()

Same thing with

spirv-headers-1.4.1 SPIRV-Headers
spirv-tools-2019.3 API and commands for processing SPIR-V
vulkan-headers-1.1.106.0 Vulkan header files
vulkan-loader-1.1.106.0 Vulkan ICD loader
vulkan-tools-1.1.106.0 Vulkan Utilities and Tools

I thought it worked with 1.1.101 but it seems largely the same though
vulkaninfo has a bit more output with the same error.

I'll check 1.1.108 on broadwell later.

spirv-headers-1.3.7 SPIRV-Headers
spirv-tools-2019.2 API and commands for processing SPIR-V
vulkan-headers-1.1.101.0 Vulkan header files
vulkan-loader-1.1.101.0 Vulkan ICD loader
vulkan-tools-1.1.101.0 Vulkan Utilities and Tools
vulkan-validation-layers-1.1.101.0 Vulkan Validation Layers

$ vkcube
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
Segmentation fault (core dumped)

$ vulkaninfo
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
INTEL-MESA: warning: vulkan/anv_device.c:1269: FINISHME: Implement pop-free point clipping
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.101



Instance Extensions:
====================
Instance Extensions count = 16
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 8
VK_EXT_debug_utils : extension revision 1
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities: extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2: extension revision 1
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
Layers: count = 6
=======
VK_LAYER_GOOGLE_threading (Google Validation Layer) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_GOOGLE_unique_objects (Google Validation Layer) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 0
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_core_validation (LunarG Validation Layer) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1

VK_LAYER_LUNARG_object_tracker (LunarG Validation Layer) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_parameter_validation (LunarG Validation Layer) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_standard_validation (LunarG Standard Validation) Vulkan version 1.1.101, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 1
GPU id : 0 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1

Presentable Surfaces:
=====================
GPU id : 0 (Intel(R) Ivybridge Mobile)
Surface type : VK_KHR_xcb_surface
Formats: count = 2
B8G8R8A8_SRGB
B8G8R8A8_UNORM
Present Modes: count = 3
IMMEDIATE_KHR
MAILBOX_KHR
FIFO_KHR
VkSurfaceCapabilitiesKHR:
minImageCount = 2
maxImageCount = 0
currentExtent:
width = 256
height = 256
minImageExtent:
width = 256
height = 256
maxImageExtent:
width = 256
height = 256
maxImageArrayLayers = 1
supportedTransform:
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
currentTransform:
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
supportedCompositeAlpha:
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedUsageFlags:
VK_IMAGE_USAGE_TRANSFER_SRC_BIT
VK_IMAGE_USAGE_TRANSFER_DST_BIT
VK_IMAGE_USAGE_SAMPLED_BIT
VK_IMAGE_USAGE_STORAGE_BIT
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
VkSurfaceCapabilities2EXT:
supportedSurfaceCounters:
None

GPU id : 0 (Intel(R) Ivybridge Mobile)
Surface type : VK_KHR_xlib_surface
Formats: count = 2
B8G8R8A8_SRGB
B8G8R8A8_UNORM
Present Modes: count = 3
IMMEDIATE_KHR
MAILBOX_KHR
FIFO_KHR
/usr/ports/pobj/vulkan-tools-1.1.101.0/Vulkan-Tools-sdk-1.1.101.0/vulkaninfo/vulkaninfo.c:4847: failed with VK_ERROR_TOO_MANY_OBJECTS
VkSurfaceCapabilitiesKHR:
minImageCount = 2
maxImageCount = 0
currentExtent:
width = 256
height = 256
minImageExtent:
width = 256
height = 256
maxImageExtent:
width = 256
height = 256
maxImageArrayLayers = 1
supportedTransform:
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
currentTransform:
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
supportedCompositeAlpha:
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedUsageFlags:
VK_IMAGE_USAGE_TRANSFER_SRC_BIT
VK_IMAGE_USAGE_TRANSFER_DST_BIT
VK_IMAGE_USAGE_SAMPLED_BIT
VK_IMAGE_USAGE_STORAGE_BIT
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
VkSurfaceCapabilities2EXT:
supportedSurfaceCounters:
None


Groups :
========
Device Group Properties (Group 0) :
physicalDeviceCount = 1

Intel(R) Ivybridge Mobile (ID: 0)

subsetAllocation = 0

No comments:

Post a Comment