egl/dri2: Add a helper for the number of planes for a FOURCC format
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 28 Aug 2018 21:31:22 +0000 (16:31 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Aug 2018 16:41:50 +0000 (11:41 -0500)
commitb95896f4923af820f78be6556c4cd5f4ed087f21
tree790e146fd87171f342fc7be7a1fecef8958e8608
parent19bdc7dd0faa5a016977b6447d610ac847b69d2b
egl/dri2: Add a helper for the number of planes for a FOURCC format

This also serves as a convenient "is this a fourcc format" check as well
which we'll take advantage of in the next commit.

Cc: mesa-stable@lists.freedesktop.org
Tested-By: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/egl_dri2.c