From 621e5254ef6714520f106bd3707fe6ddc279aa0c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 21 Dec 2010 18:54:50 +0100 Subject: mesa: implement new texture format ARGB2101010 Radeon GPUs do support GL_RGB10_A2. --- src/mesa/main/formats.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mesa/main/formats.c') diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 42f70ca232..0975407214 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -374,6 +374,15 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] = 0, 0, 0, 0, 0, 1, 1, 4 }, + { + MESA_FORMAT_ARGB2101010, + "MESA_FORMAT_ARGB2101010", + GL_RGBA, + GL_UNSIGNED_NORMALIZED, + 10, 10, 10, 2, + 0, 0, 0, 0, 0, + 1, 1, 4 + }, { MESA_FORMAT_Z24_S8, /* Name */ "MESA_FORMAT_Z24_S8", /* StrName */ @@ -1251,6 +1260,11 @@ _mesa_format_to_type_and_comps(gl_format format, *comps = 4; return; + case MESA_FORMAT_ARGB2101010: + *datatype = GL_UNSIGNED_INT_2_10_10_10_REV; + *comps = 4; + return; + case MESA_FORMAT_RGBA5551: *datatype = GL_UNSIGNED_SHORT_5_5_5_1; *comps = 4; -- cgit v1.2.3