dri: replace two-way switch case with a table lookup
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 18 May 2018 14:58:58 +0000 (15:58 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 29 May 2018 16:44:13 +0000 (17:44 +0100)
commit51a17e7feec4f9c693a070df1a957ca8a1f3ab1e
tree3de06058ba7ac5cad275472549e53383c787680e
parentd3ca7bd45223aefc60174ad7c5957d3d5792192a
dri: replace two-way switch case with a table lookup

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
---
v2: rebased on top of 432df741e0b85c021da0 "dri_util: Add
R10G10B10{A,X}2 translation between DRI and mesa_format."
src/mesa/drivers/dri/common/dri_util.c