dri_util: Add R10G10B10{A,X}2 translation between DRI and mesa_format.
authorMiguel Casas <mcasas@chromium.org>
Mon, 7 May 2018 15:45:20 +0000 (11:45 -0400)
committerChad Versace <chadversary@chromium.org>
Wed, 23 May 2018 17:17:45 +0000 (10:17 -0700)
commit432df741e0b85c021da0ac027aa25cd4dc1454c6
tree6de4f21587b643494c0ff171b33817413f2a1c17
parentc8acfd5ab28e8134c9da6ce781180fa3df5967ca
dri_util: Add R10G10B10{A,X}2 translation between DRI and mesa_format.

Add R10G10B10{A,X}2 translation between mesa_format and DRI format
to driGLFormatToImageFormat() and driImageFormatToGLFormat().

Bug: https://crbug.com/776093
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/common/dri_util.c