diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-11-01 22:38:41 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-11-07 20:27:13 +1100 |
commit | e7bf5576e599593b1bba5bbf2a7cd6d4270c7809 (patch) | |
tree | 8a91e157cbd47bdd6f9bdbb40f2b0722ad5d3d53 /options/options.h | |
parent | b258d82d6eab5cec7f27f4d6780bf991d28aadef (diff) | |
download | mpv-e7bf5576e599593b1bba5bbf2a7cd6d4270c7809.tar.bz2 mpv-e7bf5576e599593b1bba5bbf2a7cd6d4270c7809.tar.xz |
vo_gpu: hwdec_d3d11va: allow zero-copy video decoding
Like the manual says, this is technically undefined behaviour. See:
https://msdn.microsoft.com/en-us/library/windows/desktop/ff476085.aspx
In particular, MSDN says texture arrays created with the BIND_DECODER
flag cannot be used with CreateShaderResourceView, which means they
can't be sampled through SRVs like normal Direct3D textures. However,
some programs (Google Chrome included) do this anyway for performance
and power-usage reasons, and it appears to work with most drivers.
Older AMD drivers had a "bug" with zero-copy decoding, but this appears
to have been fixed. See #3255, #3464 and http://crbug.com/623029.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h index 47a4622430..170de9cddc 100644 --- a/options/options.h +++ b/options/options.h @@ -333,6 +333,7 @@ typedef struct MPOpts { struct vulkan_opts *vulkan_opts; struct spirv_opts *spirv_opts; struct d3d11_opts *d3d11_opts; + struct d3d11va_opts *d3d11va_opts; struct cocoa_opts *cocoa_opts; struct dvd_opts *dvd_opts; |