Skip to content

Commit 92742c3

Browse files
committed
More Github Actions Testing 5.
1 parent c4c22b7 commit 92742c3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,15 @@ jobs:
8282
} else {
8383
echo "::error::VK_DRIVER_FILES not found at: $env:VK_DRIVER_FILES"
8484
}
85+
# Set VK_LAYER_PATH to SDK Bin for validation layers
86+
echo "VK_LAYER_PATH=$env:VULKAN_SDK\Bin" >> $env:GITHUB_ENV
8587
8688
- name: Configure Environment (macOS)
8789
if: runner.os == 'macOS'
8890
run: |
91+
# Disable Metal Argument Buffers to prevent crash on Paravirt GPU
92+
echo "MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=0" >> $GITHUB_ENV
93+
8994
# Check common locations for MoltenVK ICD
9095
if [ -f "$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json" ]; then
9196
echo "Found MoltenVK at share/..."

src/vrhi_device.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ void vhInit( bool quiet )
144144
g_vulkanPhysicalDevice = vkbPhys.physical_device;
145145
if ( !quiet ) VRHI_LOG( " Selected GPU Device: %s\n", vkbPhys.name.c_str() );
146146

147+
VkPhysicalDeviceDriverProperties driverProps = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES };
148+
VkPhysicalDeviceProperties2 props2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2 };
149+
props2.pNext = &driverProps;
150+
vkGetPhysicalDeviceProperties2( g_vulkanPhysicalDevice, &props2 );
151+
VRHI_LOG( " Vulkan Driver: %s (%s)\n", driverProps.driverName, driverProps.driverInfo );
152+
147153
// Device Creation & Queues (via vk-bootstrap)
148154

149155
bool rtExtEnabled = false;

0 commit comments

Comments
 (0)