st/dri: Factor out DRI2 to PIPE_FORMAT conversion
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sun, 17 Apr 2016 00:49:43 +0000 (20:49 -0400)
committerMichel Dänzer <michel.daenzer@amd.com>
Wed, 20 Apr 2016 08:34:03 +0000 (17:34 +0900)
commit4463f38766061bd058dc668e0ac2820a4cba79e7
tree788ca8eb8111c05b7b2540053a68d62ae92f291c
parent899bd63acefd49a668e11c42d2ad92fa55aa157d
st/dri: Factor out DRI2 to PIPE_FORMAT conversion

This code is already duplicated twice and will be useful again. This
will also help when adding formats.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/dri/dri2.c