1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00
mpv/video/out/placebo
Niklas Haas b16d8865b7 vo_gpu: placebo: add fallback code for stride mismatch
For cases in which the requirements of the GPU API prevent directly
uploading a texture with a given stride, we need to fix the stride
manually in host memory. This incurs an extra memcpy, but there's not
much we can do about it. (Even in `ra_gl` land, the driver will just
hide this memcpy from the user)

Note: This code could be done better. It could only copy as many texels
as needed, and it could pick a stride that's a multiple of
`gpu->limits.align_tex_xfer_stride` for better performance. Patches
welcome (tm)

Fixes #7759
2020-06-16 02:54:59 +02:00
..
ra_pl.c vo_gpu: placebo: add fallback code for stride mismatch 2020-06-16 02:54:59 +02:00
ra_pl.h vo/gpu: ra_pl: Add helper to get pl_fmt from ra_format 2019-04-21 23:55:22 +03:00
utils.c vo_gpu: suppress PL_FATAL logs during probing 2020-05-03 16:27:37 +02:00
utils.h