sp: Do not falsely advertise support for some SNORM formats.
authorMichal Krol <michal@vmware.com>
Tue, 1 Dec 2009 07:52:37 +0000 (08:52 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 1 Dec 2009 08:52:35 +0000 (09:52 +0100)
src/gallium/drivers/softpipe/sp_screen.c

index 68e4ef413747073382bab8b793f51c2c1bec89af..6bf3df8e6ad3ac457cade98494605af59dfa5c2f 100644 (file)
@@ -145,6 +145,10 @@ softpipe_is_format_supported( struct pipe_screen *screen,
    case PIPE_FORMAT_DXT3_RGBA:
    case PIPE_FORMAT_DXT5_RGBA:
    case PIPE_FORMAT_Z32_FLOAT:
+   case PIPE_FORMAT_R8G8_SNORM:
+   case PIPE_FORMAT_B6UG5SR5S_NORM:
+   case PIPE_FORMAT_X8UB8UG8SR8S_NORM:
+   case PIPE_FORMAT_A8B8G8R8_SNORM:
       return FALSE;
    default:
       return TRUE;