Commit 0023f983 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

d3d11_surface: better debugging of surface issues

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 57dbe627
...@@ -109,6 +109,7 @@ endif ...@@ -109,6 +109,7 @@ endif
# D3D11VA # D3D11VA
libd3d11_surface_plugin_la_SOURCES = video_chroma/d3d11_surface.c \ libd3d11_surface_plugin_la_SOURCES = video_chroma/d3d11_surface.c \
video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h \
video_chroma/copy.c video_chroma/copy.h video_chroma/copy.c video_chroma/copy.h
if HAVE_AVCODEC_D3D11VA if HAVE_AVCODEC_D3D11VA
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vlc_filter.h> #include <vlc_filter.h>
#include "copy.h" #include "copy.h"
#include "dxgi_fmt.h"
static int OpenConverter( vlc_object_t * ); static int OpenConverter( vlc_object_t * );
static void CloseConverter( vlc_object_t * ); static void CloseConverter( vlc_object_t * );
...@@ -90,7 +91,7 @@ static int assert_staging(filter_t *p_filter, picture_sys_t *p_sys) ...@@ -90,7 +91,7 @@ static int assert_staging(filter_t *p_filter, picture_sys_t *p_sys)
hr = ID3D11Device_CreateTexture2D( p_device, &texDesc, NULL, &sys->staging); hr = ID3D11Device_CreateTexture2D( p_device, &texDesc, NULL, &sys->staging);
ID3D11Device_Release(p_device); ID3D11Device_Release(p_device);
if (FAILED(hr)) { if (FAILED(hr)) {
msg_Err(p_filter, "Failed to create a staging texture to extract surface pixels (hr=0x%0lx)", hr ); msg_Err(p_filter, "Failed to create a %s staging texture to extract surface pixels (hr=0x%0lx)", DxgiFormatToStr(texDesc.Format), hr );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
ok: ok:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment