diff options
author | Niklas Haas <git@haasn.xyz> | 2020-06-16 02:19:13 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2020-06-16 02:54:59 +0200 |
commit | b16d8865b70b4459f87c519159b5e400a9ae7e00 (patch) | |
tree | 09516bc6f1d198f3cd58c59000122b44c0ea844f /audio/out | |
parent | c9f6c458ea54f595127684a3bcd94f578ec42b1f (diff) | |
download | mpv-b16d8865b70b4459f87c519159b5e400a9ae7e00.tar.bz2 mpv-b16d8865b70b4459f87c519159b5e400a9ae7e00.tar.xz |
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
Diffstat (limited to 'audio/out')
0 files changed, 0 insertions, 0 deletions