summaryrefslogtreecommitdiffstats
path: root/Copyright
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-06-22 10:38:44 -0700
committersfan5 <sfan5@live.de>2019-07-08 01:57:02 +0200
commitb5b0350371e25a1a54ab087e078ac24cd5c104e7 (patch)
tree12fddfbe85c2fe7025391fe1ca844a51ab9b0cc8 /Copyright
parentb33ced193e0317abde33e1ace1b569276b32e50d (diff)
downloadmpv-b5b0350371e25a1a54ab087e078ac24cd5c104e7.tar.bz2
mpv-b5b0350371e25a1a54ab087e078ac24cd5c104e7.tar.xz
vo_gpu: hwdec_vaapi: Count planes rather than layers in Vulkan interop
We saw a segfault when trying to use the intel-media-driver (iHD) rather than the normal intel va driver. This happened because the iHD driver reports P010 (and maybe other formats) with multiple layers to represent the interleaved UV plane. The normal va driver reports one UV layer to match the plane. This threw off my logic which assumed that the number of layers could not exceed the number of planes. There's a way one could fix this in a fully generalised form, but I'm just going to do what the EGL path does and assume that: * Layer 'n' is on Plane 'n' for n < total number of planes * These layers always start at offset 0 on the plane You can imagine ways that these assumptions are violated, but at least the failure will look the same for both EGL and Vulkan paths.
Diffstat (limited to 'Copyright')
0 files changed, 0 insertions, 0 deletions