i965: Add 2x MSAA support to Broadwell fast clear code.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Aug 2014 22:15:43 +0000 (15:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 31 Aug 2014 08:48:10 +0000 (01:48 -0700)
According to the cited documentation section (but in the newer docs),
x_scaledown is the same for 2x and 4x MSAA.

+47 piglits.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83081
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c

index bcc8827..168e5b1 100644 (file)
@@ -282,6 +282,7 @@ get_fast_clear_rect(struct brw_context *brw, struct gl_framebuffer *fb,
        * factor is 2 vertically and either 2 or 8 horizontally.
        */
       switch (irb->mt->num_samples) {
+      case 2:
       case 4:
          x_scaledown = 8;
          break;