Skip to content

Commit

Permalink
[WebGPU] copy compressed textures fails when texture width is not div…
Browse files Browse the repository at this point in the history
…isible by the block size

https://bugs.webkit.org/show_bug.cgi?id=264923
radar://118491364

Reviewed by Tadeu Zagallo.

To correctly write to compressed textures, the width of the data must be divisible
by the compressed texture's block size and we were not previously ensuring that.

Also clean up newBytesPerRow and levelInfoBytesPerRow duplication which were being
assigned the same value and never modified.

* LayoutTests/http/tests/webgpu/webgpu/api/operation/command_buffer/copyTextureToTexture-expected.txt:
Add test expectation as this passes locally.

* Source/WebGPU/WebGPU/Queue.mm:
(WebGPU::Queue::writeTexture):

Canonical link: https://commits.webkit.org/270881@main
  • Loading branch information
mwyrzykowski committed Nov 17, 2023
1 parent cb302cd commit edb411c
Show file tree
Hide file tree
Showing 2 changed files with 409 additions and 6 deletions.
Loading

0 comments on commit edb411c

Please sign in to comment.