webgpu: Clean up GPUCommandEncoders and add some validation (#33223)

* TextureUsages::from_bits_retain

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Fixup CreateBindGroupLayout

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* GPUExtent3D checking and converting

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Cleanup GPUCommandEncoders and some TODOs

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* validate gpuorigin3d

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* validate GPUColor

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* set good expect

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-08-30 13:23:17 +02:00 committed by GitHub
parent 83a40c5180
commit 817a91f2ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 276 additions and 361 deletions

View file

@ -20514,8 +20514,6 @@
if os == "linux" and not debug: FAIL
[:format="rg32float";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rg32float";access="write-only"]
@ -20524,8 +20522,6 @@
if os == "linux" and not debug: FAIL
[:format="rg32sint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rg32sint";access="write-only"]
@ -20534,8 +20530,6 @@
if os == "linux" and not debug: FAIL
[:format="rg32uint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rg32uint";access="write-only"]
@ -20586,8 +20580,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba16float";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba16float";access="write-only"]
@ -20596,8 +20588,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba16sint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba16sint";access="write-only"]
@ -20606,8 +20596,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba16uint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba16uint";access="write-only"]
@ -20616,8 +20604,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba32float";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba32float";access="write-only"]
@ -20626,8 +20612,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba32sint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba32sint";access="write-only"]
@ -20636,8 +20620,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba32uint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba32uint";access="write-only"]
@ -20646,8 +20628,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba8sint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba8sint";access="write-only"]
@ -20656,8 +20636,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba8snorm";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba8snorm";access="write-only"]
@ -20666,8 +20644,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba8uint";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba8uint";access="write-only"]
@ -20676,8 +20652,6 @@
if os == "linux" and not debug: FAIL
[:format="rgba8unorm";access="read-write"]
expected:
if os == "linux" and not debug: FAIL
[:format="rgba8unorm";access="write-only"]
@ -60688,20 +60662,12 @@
[:resourceType="nonFiltSamp";entry={"sampler":{"type":"non-filtering"}};awaitLost=true]
[:resourceType="readonlyStorageTex";entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:resourceType="readonlyStorageTex";entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:resourceType="readwriteStorageTex";entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:resourceType="readwriteStorageTex";entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:resourceType="sampledTex";entry={"texture":{"multisampled":false,"sampleType":"unfilterable-float"}};awaitLost=false]
@ -60754,20 +60720,12 @@
[:entry={"sampler":{"type":"non-filtering"}};awaitLost=true]
[:entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"write-only","format":"r32float"}};awaitLost=false]
@ -61056,20 +61014,12 @@
[:entry={"sampler":{"type":"non-filtering"}};awaitLost=true]
[:entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-only","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=false]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"read-write","format":"r32float"}};awaitLost=true]
expected:
if os == "linux" and not debug: FAIL
[:entry={"storageTexture":{"access":"write-only","format":"r32float"}};awaitLost=false]