Skip to content
Commit f58f2f67 authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Dylan Baker
Browse files

egl/dri2: Guard against invalid fourcc formats



We already reject attempts to import images with invalid fourcc formats
but don't really guard the queries all that well.  This makes us error
out in any calls to eglQueryDmaBufModifiersEXT if the given format is
not a valid fourcc format.  We also add an assert to ensure that drivers
don't advertise any non-fourcc formats.

Cc: mesa-stable@lists.freedesktop.org
Tested-By: default avatarEero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
(cherry picked from commit 8c1b9882)
parent 74a671d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment