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:
Avi Halachmi (:avih) 2015-04-24 04:04:45 +03:00 committed by wm4
parent 9c6417ea88
commit e2326bda82
1 changed files with 5 additions and 0 deletions

View File

@ -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)
{