i965: Support calculating the bits needed to set up 16x MSAA
authorNeil Roberts <neil@linux.intel.com>
Wed, 9 Sep 2015 13:36:42 +0000 (14:36 +0100)
committerNeil Roberts <neil@linux.intel.com>
Thu, 5 Nov 2015 09:33:16 +0000 (10:33 +0100)
The gen7_surface_msaa_bits function already returns the right values
for 16 samples but it just needs its assert to be relaxed.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c

index 5080f1c3fe461dbf93fc19e1568a353b50427127..438caefdd4afd9a2d2313ab018c0c0cfab50584e 100644 (file)
@@ -78,7 +78,7 @@ gen7_surface_msaa_bits(unsigned num_samples, enum intel_msaa_layout layout)
 {
    uint32_t ss4 = 0;
 
-   assert(num_samples <= 8);
+   assert(num_samples <= 16);
 
    /* The SURFACE_MULTISAMPLECOUNT_X enums are simply log2(num_samples) << 3. */
    ss4 |= (ffs(MAX2(num_samples, 1)) - 1) << 3;