1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 14:12:10 +00:00
mpv/video
Niklas Haas dead206873 vo_opengl: use glBufferSubData instead of glMapBufferRange
Performance seems pretty much unchanged but I no longer get nasty spikes
on NUMA systems, probably because glBufferSubData runs in the driver or
something.

As a simplification of the code, we also just size the PBO to always
have the full size, even for cropped textures. This seems slower but not
by relevant amounts, and only affects e.g. --vf=crop. It also slightly
increases VRAM usage for textures with big strides.

This new code path is especially nice because it no longer depends on
GL_ARB_map_buffer_range, and no longer uses any functions that can
possibly fail, thus simplifying control flow and seemingly deprecating
the manpage's claim about possible image corruption.

In theory we could also reduce NUM_PBO_BUFFERS since it doesn't seem
like we're streaming uploads anyway, but leave it in there just in
case some drivers disagree...
2017-07-16 17:46:24 +02:00
..
decode vd_lavc: fix crashes with old hwaccels 2017-07-10 14:56:48 +02:00
filter video: drop some more IMGFMT aliases 2017-06-29 21:30:10 +02:00
out vo_opengl: use glBufferSubData instead of glMapBufferRange 2017-07-16 17:46:24 +02:00
csputils.c vo_opengl: implement sony s-log2 trc 2017-06-18 20:54:44 +02:00
csputils.h vo_opengl: implement sony s-log2 trc 2017-06-18 20:54:44 +02:00
fmt-conversion.c vo_direct3d: remove non-working nv12 shader support 2017-06-30 18:13:01 +02:00
fmt-conversion.h video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
gpu_memcpy.c
gpu_memcpy.h
hwdec.c
hwdec.h hwdec: fix 2 comments 2017-05-24 14:32:23 +02:00
image_loader.c x11: load icon differently 2017-07-01 15:56:12 +02:00
image_loader.h x11: load icon differently 2017-07-01 15:56:12 +02:00
image_writer.c Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
image_writer.h image_writer, vo_image: change license to LGPL 2017-06-18 15:45:24 +02:00
img_format.c img_format: drop some unused things 2017-06-30 18:38:23 +02:00
img_format.h img_format: fix a comment 2017-07-15 13:04:32 +02:00
mp_image_pool.c
mp_image_pool.h
mp_image.c mp_image: use new code for determining RGB/XYZ exceptions 2017-06-30 18:27:35 +02:00
mp_image.h mp_image: change license to LGPL (almost) 2017-06-16 19:35:58 +02:00
sws_utils.c sws_utils: switch back to GPL 2017-07-01 12:51:18 +02:00
sws_utils.h
vaapi.c video: get rid of swapped packed YUV 2017-06-30 18:01:29 +02:00
vaapi.h
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vdpau.c video: get rid of swapped packed YUV 2017-06-30 18:01:29 +02:00
vdpau.h
vt.c
vt.h