From c75e0320f60f93f0db40c949320fd9cee27cb52e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Oct 2019 22:45:05 +0200 Subject: vo_gpu: hwdec_d3d11egl: add missing P010 format to supported list This was obviously missing from the recent commit, which probably broke 10 bit decoding. The original commit didn't test this for lack of working hardware; this commit isn't tested either. Fixes: a1c7d613935424b69b3 --- video/out/opengl/hwdec_d3d11egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index cb8844bd0c..762050359b 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -178,7 +178,7 @@ static int init(struct ra_hwdec *hw) ID3D10Multithread_SetMultithreadProtected(multithread, TRUE); ID3D10Multithread_Release(multithread); - static const int subfmts[] = {IMGFMT_NV12, 0}; + static const int subfmts[] = {IMGFMT_NV12, IMGFMT_P010, 0}; p->hwctx = (struct mp_hwdec_ctx){ .driver_name = hw->driver->name, .av_device_ref = d3d11_wrap_device_ref(p->d3d11_device), -- cgit v1.2.3