egl/x11: deduplicate depth-to-format logic
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 17 May 2018 15:16:34 +0000 (16:16 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 24 May 2018 17:01:45 +0000 (18:01 +0100)
commit473af0b541b2583f4c72ffe885cff5ec2660a45f
tree10bfcc2f6298f7c628092d0d75480106cb6f329c
parent7b54404c9d66ed2c5348639014b09b05528c3144
egl/x11: deduplicate depth-to-format logic

Suggested-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/dri2/platform_x11_dri3.c
src/egl/drivers/dri2/platform_x11_dri3.h