Re: update Vulkan ports to latest sdk 1.3.224.1

2022-09-05 Thread Jonathan Gray
On Mon, Aug 29, 2022 at 10:00:54PM +1000, Jonathan Gray wrote:
> On Fri, Aug 26, 2022 at 10:03:12PM -0400, Thomas Frohwein wrote:
> > Hi,
> > 
> > Here is an update to the latest Vulkan SDK 1.3.224.1, along with
> > glslang to 11.11.0. Tested here on my Intel Tigerlake setup without
> > regressions in vulkaninfo, vkcube, and vkquake. Also tested with
> > VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; everything looking as
> > expected.
> > 
> > Sharing this to give an opportunity to test this on other GPUs and
> > architectures, as an increasing number of applications relies on
> > Vulkan.
> > 
> > oks? Concerns?
> 
> Builds on amd64.  I'll try some other archs.

builds on arm64



Re: update Vulkan ports to latest sdk 1.3.224.1

2022-08-30 Thread Jonathan Gray
On Mon, Aug 29, 2022 at 10:00:54PM +1000, Jonathan Gray wrote:
> On Fri, Aug 26, 2022 at 10:03:12PM -0400, Thomas Frohwein wrote:
> > Hi,
> > 
> > Here is an update to the latest Vulkan SDK 1.3.224.1, along with
> > glslang to 11.11.0. Tested here on my Intel Tigerlake setup without
> > regressions in vulkaninfo, vkcube, and vkquake. Also tested with
> > VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; everything looking as
> > expected.
> > 
> > Sharing this to give an opportunity to test this on other GPUs and
> > architectures, as an increasing number of applications relies on
> > Vulkan.
> > 
> > oks? Concerns?
> 
> Builds on amd64.  I'll try some other archs.
> 
> Running vulkaninfo on amd64 with amdgpu (renoir) I see new warnings:
> 
> WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver 
> /usr/X11R6/lib/libvulkan_intel.so supports Vulkan 1.2, but only supports 
> loader interface version 4. Interface version 5 or newer required to support 
> this version of Vulkan (Policy #LDP_DRIVER_7)
> WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver 
> /usr/X11R6/lib/libvulkan_radeon.so supports Vulkan 1.2, but only supports 
> loader interface version 4. Interface version 5 or newer required to support 
> this version of Vulkan (Policy #LDP_DRIVER_7)
> 
> Mesa 21.3.8 has
> src/amd/vulkan/radv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
> 4u);
> src/intel/vulkan/anv_device.c:   *pSupportedVersion = 
> MIN2(*pSupportedVersion, 4u);
> 
> Mesa 22.1.7 has
> src/amd/vulkan/radv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
> 5u);
> src/intel/vulkan/anv_device.c:   *pSupportedVersion = 
> MIN2(*pSupportedVersion, 5u);
> 
> changed in
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14563

as expected, warnings go away with 22.1.7

@@ -67,12 +67,13 @@ GPU id : 0 (AMD RADV RENOIR):
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
-   supportedUsageFlags: count = 5
+   supportedUsageFlags: count = 6
IMAGE_USAGE_TRANSFER_SRC_BIT
IMAGE_USAGE_TRANSFER_DST_BIT
IMAGE_USAGE_SAMPLED_BIT
IMAGE_USAGE_STORAGE_BIT
IMAGE_USAGE_COLOR_ATTACHMENT_BIT
+   IMAGE_USAGE_INPUT_ATTACHMENT_BIT
VkSurfaceCapabilities2EXT:
--
supportedSurfaceCounters:
@@ -104,13 +105,13 @@ Device Properties and Extensions:
 GPU0:
 VkPhysicalDeviceProperties:
 ---
-   apiVersion= 4202691 (1.2.195)
-   driverVersion = 88092680 (0x5403008)
+   apiVersion= 4206803 (1.3.211)
+   driverVersion = 92278791 (0x5801007)
vendorID  = 0x1002
deviceID  = 0x1636
deviceType= PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
deviceName= AMD RADV RENOIR
-   pipelineCacheUUID = 0878b1e2-1438-7210-482d-0503fc596d47
+   pipelineCacheUUID = c49e2a28-f724-e507-a5f0-33bb1d898228
 
 VkPhysicalDeviceLimits:
 ---
@@ -122,7 +123,7 @@ VkPhysicalDeviceLimits:
maxTexelBufferElements  = 4294967295
maxUniformBufferRange   = 4294967295
maxStorageBufferRange   = 4294967295
-   maxPushConstantsSize= 128
+   maxPushConstantsSize= 256
maxMemoryAllocationCount= 4294967295
maxSamplerAllocationCount   = 65536
bufferImageGranularity  = 0x0001
@@ -164,7 +165,7 @@ VkPhysicalDeviceLimits:
maxFragmentInputComponents  = 128
maxFragmentOutputAttachments= 8
maxFragmentDualSrcAttachments   = 1
-   maxFragmentCombinedOutputResources  = 8
+   maxFragmentCombinedOutputResources  = 8388606
maxComputeSharedMemorySize  = 65536
maxComputeWorkGroupCount: count = 3
65535
@@ -343,12 +344,12 @@ VkPhysicalDeviceDriverProperties:
 -
driverID= DRIVER_ID_MESA_RADV
driverName  = radv
-   driverInfo  = Mesa 21.3.8
+   driverInfo  = Mesa 22.1.7
conformanceVersion:
major= 1
minor= 2
-   subminor = 3
-   patch= 0
+   subminor = 7
+   patch= 1
 
 VkPhysicalDeviceDrmPropertiesEXT:
 -
@@ -390,8 +391,8 @@ VkPhysicalDeviceIDProperties:
deviceNodeMask  = 0
deviceLUIDValid = false
 
-VkPhysicalDeviceInlineUniformBlockPropertiesEXT:

Re: update Vulkan ports to latest sdk 1.3.224.1

2022-08-29 Thread Jonathan Gray
On Fri, Aug 26, 2022 at 10:03:12PM -0400, Thomas Frohwein wrote:
> Hi,
> 
> Here is an update to the latest Vulkan SDK 1.3.224.1, along with
> glslang to 11.11.0. Tested here on my Intel Tigerlake setup without
> regressions in vulkaninfo, vkcube, and vkquake. Also tested with
> VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; everything looking as
> expected.
> 
> Sharing this to give an opportunity to test this on other GPUs and
> architectures, as an increasing number of applications relies on
> Vulkan.
> 
> oks? Concerns?

Builds on amd64.  I'll try some other archs.

Running vulkaninfo on amd64 with amdgpu (renoir) I see new warnings:

WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver 
/usr/X11R6/lib/libvulkan_intel.so supports Vulkan 1.2, but only supports loader 
interface version 4. Interface version 5 or newer required to support this 
version of Vulkan (Policy #LDP_DRIVER_7)
WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver 
/usr/X11R6/lib/libvulkan_radeon.so supports Vulkan 1.2, but only supports 
loader interface version 4. Interface version 5 or newer required to support 
this version of Vulkan (Policy #LDP_DRIVER_7)

Mesa 21.3.8 has
src/amd/vulkan/radv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
4u);
src/intel/vulkan/anv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
4u);

Mesa 22.1.7 has
src/amd/vulkan/radv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
5u);
src/intel/vulkan/anv_device.c:   *pSupportedVersion = MIN2(*pSupportedVersion, 
5u);

changed in
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14563

@@ -2,10 +2,10 @@
 VULKANINFO
 ==
 
-Vulkan Instance Version: 1.3.204
+Vulkan Instance Version: 1.3.224
 
 
-Instance Extensions: count = 18
+Instance Extensions: count = 19
 ===
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display: extension revision 1
@@ -21,6 +21,7 @@ Instance Extensions: count = 18
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2   : extension revision 1
+   VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_xcb_surface : extension revision 6
@@ -343,7 +344,11 @@ VkPhysicalDeviceDriverProperties:
driverID   = DRIVER_ID_MESA_RADV
driverName = radv
driverInfo = Mesa 21.3.8
-   conformanceVersion = 1.2.3.0
+   conformanceVersion:
+   major= 1
+   minor= 2
+   subminor = 3
+   patch= 0
 
 VkPhysicalDeviceDrmPropertiesEXT:
 -
@@ -594,7 +599,11 @@ VkPhysicalDeviceVulkan12Properties:
driverID = 
DRIVER_ID_MESA_RADV
driverName   = radv
driverInfo   = Mesa 21.3.8
-   conformanceVersion   = 1.2.3.0
+   conformanceVersion:
+   major= 1
+   minor= 2
+   subminor = 3
+   patch= 0
denormBehaviorIndependence   = 
SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY
roundingModeIndependence = 
SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY
shaderSignedZeroInfNanPreserveFloat16= true
@@ -798,23 +807,11 @@ VkQueueFamilyProperties:
VkQueueFamilyGlobalPriorityPropertiesKHR:
-
priorityCount  = 4
-   priorities: count = 16
-   128
-   256
-   512
-   1024
-   0
-   0
-   0
-   0
-   0
-   0
-   0
-   0
-   0
-   0
-   0
-   0
+   priorities: count = 4
+   QUEUE_GLOBAL_PRIORITY_LOW_KHR
+   QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR
+   QUEUE_GLOBAL_PRIORITY_HIGH_KHR
+   QUEUE_GLOBAL_PRIORITY_REALTIME_KHR
 
 
queueProperties[1]:
@@ -827,23 +824,11 @@ VkQueueFamilyProperties:
VkQueueFamilyGlobalPriorityPropertiesKHR:

update Vulkan ports to latest sdk 1.3.224.1

2022-08-26 Thread Thomas Frohwein
Hi,

Here is an update to the latest Vulkan SDK 1.3.224.1, along with
glslang to 11.11.0. Tested here on my Intel Tigerlake setup without
regressions in vulkaninfo, vkcube, and vkquake. Also tested with
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; everything looking as
expected.

Sharing this to give an opportunity to test this on other GPUs and
architectures, as an increasing number of applications relies on
Vulkan.

oks? Concerns?

Index: glslang//Makefile
===
RCS file: /cvs/ports/graphics/glslang/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- glslang//Makefile   11 Mar 2022 19:22:27 -  1.12
+++ glslang//Makefile   27 Aug 2022 01:54:26 -
@@ -2,7 +2,7 @@ PORTROACH = limit:^[0-9]
 
 COMMENT =  reference front-end for GLSL and ESSL
 
-GH_TAGNAME =   11.7.0
+GH_TAGNAME =   11.11.0
 GH_ACCOUNT =   KhronosGroup
 GH_PROJECT =   glslang
 
Index: glslang//distinfo
===
RCS file: /cvs/ports/graphics/glslang/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- glslang//distinfo   9 Dec 2021 04:48:31 -   1.5
+++ glslang//distinfo   27 Aug 2022 01:54:26 -
@@ -1,2 +1,2 @@
-SHA256 (glslang-11.7.0.tar.gz) = tsg4ZMNgZnjRFnURT6XzWMUZ/h2tmngYArzIf7j6MtU=
-SIZE (glslang-11.7.0.tar.gz) = 3426327
+SHA256 (glslang-11.11.0.tar.gz) = JsIWwwYlEsAYy911IiS42tcDt+W7kL8zi6LbtdTxFDg=
+SIZE (glslang-11.11.0.tar.gz) = 3542123
Index: glslang//pkg/PLIST
===
RCS file: /cvs/ports/graphics/glslang/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- glslang//pkg/PLIST  11 Mar 2022 19:22:27 -  1.4
+++ glslang//pkg/PLIST  27 Aug 2022 01:54:26 -
@@ -67,23 +67,14 @@ include/glslang/SPIRV/spirv.hpp
 include/glslang/SPIRV/spvIR.h
 include/glslang/build_info.h
 lib/cmake/
-lib/cmake/HLSLTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/HLSLTargets.cmake
-lib/cmake/OGLCompilerTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/OGLCompilerTargets.cmake
-lib/cmake/OSDependentTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/OSDependentTargets.cmake
-lib/cmake/SPIRVTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/SPIRVTargets.cmake
-lib/cmake/SPVRemapperTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/SPVRemapperTargets.cmake
-lib/cmake/glslang-default-resource-limitsTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/glslang-default-resource-limitsTargets.cmake
-lib/cmake/glslangTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/glslangTargets.cmake
-lib/cmake/glslangValidatorTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/glslangValidatorTargets.cmake
-lib/cmake/spirv-remapTargets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/spirv-remapTargets.cmake
 @static-lib lib/libGenericCodeGen.a
 @static-lib lib/libHLSL.a
@@ -94,3 +85,8 @@ lib/cmake/spirv-remapTargets.cmake
 @static-lib lib/libSPVRemapper.a
 @static-lib lib/libglslang-default-resource-limits.a
 @static-lib lib/libglslang.a
+share/glslang/
+share/glslang/glslang-config-version.cmake
+share/glslang/glslang-config.cmake
+share/glslang/glslang-targets${MODCMAKE_BUILD_SUFFIX}
+share/glslang/glslang-targets.cmake
Index: spirv-headers/Makefile
===
RCS file: /cvs/ports/graphics/spirv-headers/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- spirv-headers/Makefile  21 Mar 2022 13:21:42 -  1.9
+++ spirv-headers/Makefile  27 Aug 2022 01:54:26 -
@@ -1,6 +1,6 @@
 COMMENT =  SPIRV-Headers
 
-V =1.3.204.1
+V =1.3.224.1
 DISTNAME = spirv-headers-${V}
 GH_ACCOUNT =   KhronosGroup
 GH_PROJECT =   SPIRV-Headers
Index: spirv-headers/distinfo
===
RCS file: /cvs/ports/graphics/spirv-headers/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- spirv-headers/distinfo  21 Mar 2022 13:21:42 -  1.7
+++ spirv-headers/distinfo  27 Aug 2022 01:54:26 -
@@ -1,2 +1,2 @@
-SHA256 (spirv-headers-1.3.204.1.tar.gz) = 
JihkBTlowhfUWyS4kESnc2oyNhiUdD3Wz+eI3yWMdGw=
-SIZE (spirv-headers-1.3.204.1.tar.gz) = 417550
+SHA256 (spirv-headers-1.3.224.1.tar.gz) = 
yFcUv+YvhAByhr07PARxrwp+BqtmvCykYjBDARsoc38=
+SIZE (spirv-headers-1.3.224.1.tar.gz) = 437010
Index: spirv-headers/pkg/PLIST
===
RCS file: /cvs/ports/graphics/spirv-headers/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST
--- spirv-headers/pkg/PLIST 11 Mar 2022 19:23:27 -  1.6
+++ spirv-headers/pkg/PLIST 27 Aug 2022 01:54:26 -
@@ -62,6 +62,7 @@ include/spirv/unified1/extinst.spv-amd-g
 include/spirv/unified1/extinst.spv-amd-shader-ballot.grammar.json
 
include/spirv/unified1/extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json
 include/spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json
+include/spirv/unified1/spirv.bf