mirror of https://github.com/mpv-player/mpv
dxva2: fix broken build with gcc 5.1
gpu_mempcy should to be called from code which targets SSE Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
parent
9c6417ea88
commit
e2326bda82
|
@ -256,6 +256,9 @@ static void copy_nv12_fallback(struct mp_image *dest, uint8_t *src_bits,
|
|||
mp_image_copy(dest, &buf);
|
||||
}
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC target("sse4.1")
|
||||
|
||||
static void copy_nv12_gpu_sse4(struct mp_image *dest, uint8_t *src_bits,
|
||||
unsigned src_pitch, unsigned surf_height)
|
||||
{
|
||||
|
@ -291,6 +294,8 @@ static void copy_nv12_gpu_sse4(struct mp_image *dest, uint8_t *src_bits,
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC pop_options
|
||||
|
||||
static struct mp_image *dxva2_retrieve_image(struct lavc_ctx *s,
|
||||
struct mp_image *img)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue