Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-27 Thread Niklas Haas
On Mon, 27 Jun 2022 10:03:55 +0300 Jan Ekström wrote: > On Tue, Jun 21, 2022 at 10:46 PM Niklas Haas wrote: > > > > From: Niklas Haas > > > > GL and Metal cache the state at time of texture creation. GLES2 and > > Direct3D 11 use the state at time of the render copy call. > > > > So the only way

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-27 Thread Jan Ekström
On Tue, Jun 21, 2022 at 10:46 PM Niklas Haas wrote: > > From: Niklas Haas > > GL and Metal cache the state at time of texture creation. GLES2 and > Direct3D 11 use the state at time of the render copy call. > > So the only way we can get the correct behavior consistently is by > making sure the s

[FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-21 Thread Niklas Haas
From: Niklas Haas GL and Metal cache the state at time of texture creation. GLES2 and Direct3D 11 use the state at time of the render copy call. So the only way we can get the correct behavior consistently is by making sure the state is set for both the upload *and* the draw call. This probably