st/mesa: also try PIPE_FORMAT_R10G10B10A2_UNORM for GL_RGB10
authorBrian Paul <brianp@vmware.com>
Tue, 28 Apr 2015 21:48:56 +0000 (15:48 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 5 May 2015 21:27:52 +0000 (15:27 -0600)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_format.c

index 181465dd81b72fd8f20e86fc422c435f277ca62f..db7b5b71d66923c80612a2c6d804c6ed3211cfe1 100644 (file)
@@ -991,7 +991,7 @@ static const struct format_mapping format_map[] = {
    {
       { GL_RGB10, 0 },
       { PIPE_FORMAT_B10G10R10X2_UNORM, PIPE_FORMAT_B10G10R10A2_UNORM,
-        DEFAULT_RGB_FORMATS }
+        PIPE_FORMAT_R10G10B10A2_UNORM, DEFAULT_RGB_FORMATS }
    },
    {
       { GL_RGB10_A2, 0 },