From efa67d81bac066a3d185e228e9d483ec0483395f Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Wed, 6 May 2026 19:10:32 +0200 Subject: [PATCH] switching to master mustpasslist --- .gitea/workflows/1.4-CTS.yml | 81 ------------------------------------ .gitea/workflows/Test.yml | 2 +- build.zig | 20 +++------ src/soft/SoftBuffer.zig | 3 ++ 4 files changed, 9 insertions(+), 97 deletions(-) delete mode 100644 .gitea/workflows/1.4-CTS.yml diff --git a/.gitea/workflows/1.4-CTS.yml b/.gitea/workflows/1.4-CTS.yml deleted file mode 100644 index 051db7a..0000000 --- a/.gitea/workflows/1.4-CTS.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Vulkan 1.4 CTS - -on: - workflow_dispatch: - -jobs: - build_and_test: - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'ci skip')" - - steps: - - uses: actions/checkout@v4 - - uses: https://codeberg.org/mlugg/setup-zig@v2 - - uses: actions/setup-node@v6 - with: - node-version: 24 - - name: Install system dependencies - run: | - apt update - apt install -y libgl1 libwayland-egl1 libwayland-cursor0 clang libwayland-server0 - - - name: Building - run: zig build - - - name: Install Rust - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown - - - uses: Swatinem/rust-cache@v2 - with: - cache-all-crates: "true" - cache-on-failure: "false" - - - name: Install cargo tools - uses: cargo-bins/cargo-binstall@main - - - name: Install Dioxus - shell: bash - run: | - source $HOME/.cargo/env - cargo binstall dioxus-cli --no-confirm --force --version 0.7.3 - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - - name: Install deqp-runner - run: cargo install deqp-runner - - - name: Verify installations - shell: bash - run: | - source $HOME/.cargo/env - echo "Verifying tool installations..." - which dx && dx --version || echo "dioxus-cli not found" - which deqp-runner && deqp-runner --version || echo "deqp-runner not found" - - - name: Run Vulkan CTS - run: zig build cts-soft --release=fast -- --mustpass-list=master -j3 - continue-on-error: true - - - name: Verify tests - run: ls cts | grep "results.csv" - - - name: Cloning CTS viewer - run: git clone https://git.kbz8.me/kbz_8/VulkanCTSViewer.git - - - name: Build CTS viewer - env: - URL: https://vulkan-driver-1-4-cts-report.kbz8.me/ - run: | - cd VulkanCTSViewer - zip ./assets/results.zip ../cts/results.csv - dx build --verbose --platform web --release - - - name: Publish to Cloudflare Pages - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy VulkanCTSViewer/target/dx/vulkan-cts-analyzer/release/web/public --project-name=vulkan-driver-1-4-cts-report - gitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitea/workflows/Test.yml b/.gitea/workflows/Test.yml index 6d36c45..8a27b06 100644 --- a/.gitea/workflows/Test.yml +++ b/.gitea/workflows/Test.yml @@ -46,7 +46,7 @@ jobs: shell: bash run: | source $HOME/.cargo/env - cargo binstall dioxus-cli --no-confirm --force --version 0.7.3 + cargo binstall dioxus-cli --no-confirm --force --version 0.7.6 echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Install deqp-runner diff --git a/build.zig b/build.zig index e8abe2c..cc4f6d9 100644 --- a/build.zig +++ b/build.zig @@ -224,12 +224,7 @@ fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const Implemen }, })); - const mustpass = try cts.path( - b.fmt("mustpass/{}.{}.2/vk-default.txt", .{ - impl.vulkan_version.major, - impl.vulkan_version.minor, - }), - ).getPath3(b, null).toString(b.allocator); + const mustpass = try cts.path("mustpass/master/vk-default.txt").getPath3(b, null).toString(b.allocator); const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator); @@ -315,15 +310,10 @@ fn addMultithreadedCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *c } } - const mustpass_path = try cts.path( - if (mustpass_override) |override| - b.fmt("mustpass/{s}/vk-default.txt", .{override}) - else - b.fmt("mustpass/{}.{}.2/vk-default.txt", .{ - impl.vulkan_version.major, - impl.vulkan_version.minor, - }), - ).getPath3(b, null).toString(b.allocator); + const mustpass_path = try cts.path(if (mustpass_override) |override| + b.fmt("mustpass/{s}/vk-default.txt", .{override}) + else + "mustpass/master/vk-default.txt").getPath3(b, null).toString(b.allocator); const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator); const run = b.addSystemCommand(&[_][]const u8{"deqp-runner"}); diff --git a/src/soft/SoftBuffer.zig b/src/soft/SoftBuffer.zig index ad977a1..944c1cf 100644 --- a/src/soft/SoftBuffer.zig +++ b/src/soft/SoftBuffer.zig @@ -13,6 +13,9 @@ pub const Interface = base.Buffer; interface: Interface, pub fn create(device: *base.Device, allocator: std.mem.Allocator, info: *const vk.BufferCreateInfo) VkError!*Self { + if (info.size > lib.MAX_MEMORY_ALLOCATION_SIZE) + return VkError.OutOfDeviceMemory; + const self = allocator.create(Self) catch return VkError.OutOfHostMemory; errdefer allocator.destroy(self);