On Wed, 31 Mar 2021 07:27:45 GMT, Jayathirth D V <j...@openjdk.org> wrote:
> In MTLBlitLoops.copyArea() we use standalone encoder which has no clip state > information because of which we ignore clip parameters set in rect clip and > shape clip. We need to query and use encoders from EncoderManager to honour > clip states in copyArea. I tested this fix. No regressions were observed. Using MTLBlitCommandEncoder is intuitive when metal resource copying needs to be done. I suggest to add a comment (may be as a method description or in code where we do the actual copy) to mention why we use MTLRenderCommandEncoder and not MTLBlitCommandEncoder. ------------- PR: https://git.openjdk.java.net/jdk/pull/3283