cts icon indicating copy to clipboard operation
cts copied to clipboard

op: texture_view,read/write

Open kainino0x opened this issue 3 years ago • 2 comments

Some planning is needed here, then maybe split up the task into smaller tasks.

  • Make sure reads/writes go to the correct subresources of texture views.
  • Stencil reads return S,X,X,X (warn if not S,S,S,S or S,0,0,1)
  • Gather operations
  • blocked on gpuweb/gpuweb#2094
    • Depth reads using texture_2d return D,X,X,X (warn if not D,D,D,D or D,0,0,1)
    • Gather operations on depth/stencil components 2,3,4

Can add basic tests, but full tests will benefit from the generalized texture write helpers which is more complex. gpuweb/cts#881

kainino0x avatar Jan 13 '22 01:01 kainino0x

Some drivers have difficulty with the following. Particularly with depth-stencil textures. We should make sure it has some test coverage:

  • Making a texture view and then using it (sampling, depth-stencil attachment), offset at a non-zero mip level or array layer
  • Making a texture view, and sampling from it using textureLoad on texture_2d_array in the shader with various zero, and nonzero array_index and level args.

austinEng avatar Jan 31 '23 16:01 austinEng

this is in the TODOs in the tests already, but from code cov, we also need to test all dimensions (untested: 1d/3d/cube/cube-array)

austinEng avatar Feb 14 '23 01:02 austinEng