RESOLVED FIXED 211303
WebGPU: copyTextureToTexture() has an implementation bug (src copy view info is used also as dst)
https://bugs.webkit.org/show_bug.cgi?id=211303
Summary WebGPU: copyTextureToTexture() has an implementation bug (src copy view info ...
gvinals
Reported 2020-05-01 10:44:35 PDT
Summary: WebGPU: copyTextureToTexture() has an implementation bug (src copy view info is used also as dst). See: GPUCommandBufferMetal.mm#214,217 [blitEncoder() copyFromTexture:src.texture->platformTexture() sourceSlice:src.arrayLayer sourceLevel:src.mipLevel sourceOrigin:MTLOriginMake(src.origin.x, src.origin.y, src.origin.z) sourceSize:MTLSizeMake(size.width, size.height, size.depth) toTexture:dst.texture->platformTexture() destinationSlice:src.arrayLayer destinationLevel:src.mipLevel destinationOrigin:MTLOriginMake(dst.origin.x, dst.origin.y, dst.origin.z)]; In particular: destinationSlice:src.arrayLayer destinationLevel:src.mipLevel Should be: destinationSlice:dst.arrayLayer destinationLevel:dst.mipLevel
Attachments
Patch (10.70 KB, patch)
2020-05-02 18:49 PDT, gvinals
dbates: review+
Patch for committing (10.77 KB, patch)
2020-05-04 10:13 PDT, gvinals
no flags
gvinals
Comment 1 2020-05-01 10:47:04 PDT
gvinals
Comment 2 2020-05-02 18:49:05 PDT
Daniel Bates
Comment 3 2020-05-03 12:14:48 PDT
Comment on attachment 398302 [details] Patch Patch looks good.
gvinals
Comment 4 2020-05-04 10:13:41 PDT
Created attachment 398385 [details] Patch for committing
EWS
Comment 5 2020-05-04 10:14:51 PDT
EWS
Comment 6 2020-05-04 11:00:46 PDT
Committed r261089: <https://trac.webkit.org/changeset/261089> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398385 [details].
Note You need to log in before you can comment on or make changes to this bug.