radeonsi: Allow 16 samples MSAA mode for PIPE_FORMAT_NONE
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sun, 20 Mar 2016 03:50:04 +0000 (14:50 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 02:03:58 +0000 (12:03 +1000)
For ARB_framebuffer_no_attachment; A is_format_supported() query
with 'PIPE_FORMAT_NONE' passed implies a query of the number of
samples supported from the framebuffer with no attachment.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 10d691a92f18f7c0f10c4aba958f14d4ab364613..415b03aac1d18e60c2a38a9483d1c7a682df88a6 100644 (file)
@@ -2000,6 +2000,11 @@ boolean si_is_format_supported(struct pipe_screen *screen,
                case 4:
                case 8:
                        break;
+               case 16:
+                       if (format == PIPE_FORMAT_NONE)
+                               return TRUE;
+                       else
+                               return FALSE;
                default:
                        return FALSE;
                }