From 26d718ff71e6d9f863e092ab46ed18212e207157 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 28 May 2011 14:51:16 +0200 Subject: [PATCH] st/mesa: add GL_DEPTH_COMPONENT32 fallback formats This makes D32 work again on chipsets which can't do it. Reviewed-by: Brian Paul --- src/mesa/state_tracker/st_format.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index de30b4fc610..4360ed7d652 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -747,7 +747,10 @@ static struct format_mapping format_map[] = { }, { { GL_DEPTH_COMPONENT32, 0 }, - { PIPE_FORMAT_Z32_UNORM, 0 } + { PIPE_FORMAT_Z32_UNORM, + PIPE_FORMAT_Z24X8_UNORM, PIPE_FORMAT_X8Z24_UNORM, + PIPE_FORMAT_Z16_UNORM, + PIPE_FORMAT_Z24_UNORM_S8_USCALED, PIPE_FORMAT_S8_USCALED_Z24_UNORM, 0 } }, { { GL_DEPTH_COMPONENT, 0 }, -- 2.30.2