Commit Graph
9698 Commits
Author SHA1 Message Date
Andy Leiserson c0c16078e9 Rename and relocate ID resolution helpers 2025-09-11 10:20:03 -07:00
Andy Leiserson 885845087f Extract the parts of PassState that apply to the base encoder
And rename a few things.
2025-09-11 10:20:03 -07:00
Andy Leiserson f4ea8642a5 docs(CHANGELOG): Update pull request reference (#8208) 2025-09-11 00:52:02 -04:00
MagnusandConnor Fitzgerald 54ce9f7f98 Update shader bencher to share some logic with snapshots (#8108)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-09-11 00:55:42 +00:00
Andy Leiserson d31d944ed5 Clarify the effect of the SUBGROUP features and capabilities (#8203) 2025-09-10 20:53:56 -04:00
Andy Leiserson 3758b08be9 Update cts to 20d2805 (#8201) 2025-09-10 20:50:25 -04:00
3902b0c11c Add support for builtin DComp swapchains (#7550)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: Marijn Suijten <marijns95@gmail.com>
2025-09-11 00:19:42 +00:00
Andy Leiserson 1791064a30 Update comments on IdentityValues (#8183) 2025-09-09 11:14:41 -07:00
Andy Leiserson a9638c8e3a Remove pending_query_resets from CommandBufferMutable (#8187)
It is emptied by `reset_queries` at the end of every render pass, so
it's just keeping an allocation alive, not holding any state. It seems
unlikely that there is sufficient performance gain from reusing the
memory allocation to justify the complexity of additional state at
higher layers.
2025-09-09 13:03:12 -04:00
renovate[bot] f7e81f26fd chore(deps): update crate-ci/typos action to v1.36.2 (#8193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 08:31:46 -04:00
renovate[bot]andAndy Leiserson 6bab36d1fd chore(deps): update cargo.lock (#8197)
* chore(deps): update cargo.lock

* Update to png 0.18

* Waive cargo-deny advisory check for `adler` crate

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com>
2025-09-08 18:14:34 -04:00
Connor FitzgeraldandKevin Reid fb28da16c1 [wgpu] add convience functions for deferring mapping/callbacks
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2025-09-07 09:42:57 +02:00
Connor Fitzgerald 832609959d Convert QueueWriteBufferView to be lifetime-less (#8161) 2025-09-07 07:34:06 +00:00
Andy Leiserson 4853133eaa Fix buffer initialization tracking for some buffer-texture copies (#8099)
Fixes #7947
Fixes #8021
Fixes #8097
2025-09-04 14:15:31 -07:00
Andy Leiserson 989d48ccb6 Tweak the bytes_per_row alignment check
Previously, the check was skipped if the copy was a single row, which is
not correct. The check should be made whenever bytes_per_row is
specified. It is permissible not to specify bytes_per_row if the copy is
a single row, but if it is specified, it must be aligned.

Also removes a redundant check of the `offset` alignment.

Since the offset and bytesPerRow alignment checks are not part of
"validating linear texture data", I chose to remove that instance of
them. These checks are now in `validate_texture_buffer_copy`, which
does not correspond 1:1 with the spec, but has a comment explaining how
it does correspond.
2025-09-04 14:15:31 -07:00
Andy Leiserson fcde047ae8 Fix cargo deny problems (#8182) 2025-09-04 14:58:31 -04:00
Connor FitzgeraldandAndreas Reich c488bbe604 [wgpu] Improve buffer mapping errors and allow multiple immutable borrows (#8150)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-09-02 12:21:16 -04:00
Jamie Nicol 12c8b378a1 [naga wgsl-in] add "texture_external" to reserved keyword list (#8178) 2025-09-01 08:37:42 -04:00
David Duarte 188a8cb3b4 ci: Make the install-{mesa,vulkan-sdk} action multiplatform (#8167)
This also allow to remove the MESA_VERSION and VULKAN_SDK_VERSION
duplication between the ci workflow and the install action.

To pass down the version in each steps, I added action inputs
because there is no way as of today to define environments
variables that are shared between steps in composite actions
(no top level `env:` like for workflows).
2025-08-29 18:53:43 -04:00
Connor Fitzgerald 8d1f4bb5f2 Require token for experimental features (#8163) 2025-08-29 15:43:27 -04:00
Lucas Abel e58223bedf [metal] allow access to command buffer (#8166) 2025-08-29 12:32:34 -04:00
Alphyr 5a24e2474d wgpu-types: Do not depend on "bitflags/serde" if feature "serde" is not enabled (#8170) 2025-08-29 12:31:31 -04:00
Lucas Abel 5d4cf56689 [api] expose invalid submission index to PollError (#8169) 2025-08-29 12:30:55 -04:00
Matthias Reitinger 80a742094c [wgpu-core] Improve errors for forbidden texture copy formats (#8156)
TransferError now has separate variants for texture copy formats that
are only forbidden in combination with specific aspects
(CopyFrom/ToForbiddenTextureFormatAspect), and texture copy formats that
are always forbidden, irrespective of the aspect
(CopyFrom/ToForbiddenTextureFormat).

This produces a less confusing error message by not mentioning the
aspect it is not relevant.
2025-08-29 10:03:35 +00:00
Lucas AbelandAndreas Reich cd14b194a4 [egl] get rid of unwrap where possible (#8024)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-08-28 21:59:54 +00:00
Andy Leiserson 0aacfeadff fix(hal): adjust the conditions when F16_IN_F32 is available 2025-08-28 13:58:36 -07:00
Andy Leiserson 03513e8f90 chore(tests): add issue links for TODOs 2025-08-28 13:58:36 -07:00
Andy Leiserson 7933dd78aa docs(types): note intent to move EXTERNAL_TEXTURE to a downlevel flag 2025-08-28 13:58:36 -07:00
Andy LeisersonandErich Gubler 4a7b6abb19 Add F16_IN_F32 downlevel flag for pack/unpack/quantize f16 (#8130)
Although the operation of these functions is defined in terms of f16
semantics, the input/output types are not f16, and they are generally
available even when native `f16` support is not. But in at least one
case, they are only available with `f16` support, so add a new downlevel
flag that is cleared when these functions are not available.

Add some infrastructure to simplify testing of missing
capabilities/extensions, and add tests for a few more kinds of f16
usage.

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2025-08-28 13:58:36 -07:00
Andy Leiserson 1689c56ee3 refactor(naga): use explicit \x20 in error output instead of trailing spaces 2025-08-28 13:58:36 -07:00
Andy Leiserson e939bf273a feat(naga): expose {,Implemented}EnableExtension 2025-08-28 13:58:36 -07:00
Andy Leiserson 2e78c5b061 typo: s/investiagate/investigate 2025-08-28 13:58:36 -07:00
David Duarte 967cd4b7ff ci: Extract linux vulkan installation into its own action (#8164) 2025-08-28 12:01:15 -04:00
Connor Fitzgerald 2ff46cd7cd Remove MULTI_DRAW_INDIRECT feature (#8162) 2025-08-28 12:00:14 -04:00
Connor Fitzgerald 97ba77d668 We're just lowercase bro (#8160) 2025-08-28 11:09:07 -04:00
Connor Fitzgerald e59cdb55e5 Remove CODEOWNERS file (#8159) 2025-08-28 11:08:47 -04:00
Kevin Reid 1c8d769b67 [naga] Introduce KeywordSet and CaseInsensitiveKeywordSet. (#8136) 2025-08-27 23:42:02 -04:00
Connor Fitzgerald ca3f7f8989 [tests] Add test priorities so that heavy tests run first (#8152) 2025-08-27 21:45:50 +00:00
David Duarte 780bdfc909 hal/vulkan: Increment counter for intermediate shaders (#8066) 2025-08-27 16:26:18 -04:00
David Duarte 0372d318ca ci: Update vulkan sdk to 1.4.321.0 (#8157) 2025-08-27 10:16:20 -04:00
Andy Leiserson 9a8dbfb85c Link image_copy depth/stencil dx12 failures to #8133 (#8148) 2025-08-25 13:43:17 -04:00
Connor Fitzgerald 6adb058c50 [ci] Fix minimal version job (#8147) 2025-08-25 12:42:19 -04:00
Connor Fitzgerald 884cea5ad9 Narrow locks in queue::write_buffer (#8146) 2025-08-25 11:54:30 -04:00
renovate[bot] 1301f80688 Update Rust crate cargo_metadata to 0.22 (#8144)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-25 14:10:50 +00:00
renovate[bot] fdde05c7c0 Update cts digest to f164473 (#8143) 2025-08-25 04:22:26 -04:00
renovate[bot] 03d419d094 Update Cargo.lock (#8145)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-25 09:28:37 +02:00
Kevin Reid c1254b4c80 Add more overview documentation to Buffer and usages. 2025-08-24 17:30:48 -04:00
Magnus 24a31c494a Only commit hopefully (#8140) 2025-08-24 17:23:21 -04:00
Andy Leiserson 57368b374f Disable copy_ranges on dx12 due to intermittent failures (#8141) 2025-08-24 17:21:12 -04:00
Andy Leiserson 779249fa92 Remove security issue type; github adds it automatically (#8142) 2025-08-24 17:20:33 -04:00