EGL_EXT_image_dma_buf_import: fix p010, p012 input

We made some wrong assumptions about the format layout, this fixes
input given to formats, input can be identical.

v2: clear out 6 lsb from P010 and 4 lsb from P012

Fixes: 3ce4e483 "EGL_EXT_image_dma_buf_import: add P12, P16 format support"
Signed-off-by: Tapani Pälli <>
Reviewed-by: Lionel Landwerlin <>
1 job for master
Status Job ID Name Coverage
failed continuous-integration/appveyor/branch