i965: Handle 16x MSAA in IMS dimension munging code.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Jan 2015 07:58:43 +0000 (23:58 -0800)
committerNeil Roberts <neil@linux.intel.com>
Thu, 5 Nov 2015 09:33:15 +0000 (10:33 +0100)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index b6e352057278a28537ec492dd7ac48836e480d0d..0802b92502c65f81584f99c626f20dfc9079f90c 100644 (file)
@@ -416,9 +416,13 @@ intel_miptree_create_layout(struct brw_context *brw,
             width0 = ALIGN(width0, 2) * 4;
             height0 = ALIGN(height0, 2) * 2;
             break;
+         case 16:
+            width0 = ALIGN(width0, 2) * 4;
+            height0 = ALIGN(height0, 2) * 4;
+            break;
          default:
-            /* num_samples should already have been quantized to 0, 1, 2, 4, or
-             * 8.
+            /* num_samples should already have been quantized to 0, 1, 2, 4, 8
+             * or 16.
              */
             unreachable("not reached");
          }