diff options
author | Jason Ekstrand <[email protected]> | 2016-09-01 18:57:01 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-03 14:53:01 -0700 |
commit | 5637f3f1202b46ff02c80e743dd84752a040685a (patch) | |
tree | 44d2b312053204f14dc752ecb77ed13f9d5578e5 /src/intel/isl/isl_gen7.c | |
parent | b7a0f2e1f769314d88d902c8506250d18393d359 (diff) |
intel/isl: Add a format_supports_multisampling helper
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_gen7.c')
-rw-r--r-- | src/intel/isl/isl_gen7.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c index 4f1cc9d5f1a..a2a9486211d 100644 --- a/src/intel/isl/isl_gen7.c +++ b/src/intel/isl/isl_gen7.c @@ -30,8 +30,6 @@ gen7_choose_msaa_layout(const struct isl_device *dev, enum isl_tiling tiling, enum isl_msaa_layout *msaa_layout) { - const struct isl_format_layout *fmtl = isl_format_get_layout(info->format); - bool require_array = false; bool require_interleaved = false; @@ -43,19 +41,7 @@ gen7_choose_msaa_layout(const struct isl_device *dev, return true; } - /* From the Ivybridge PRM, Volume 4 Part 1 p63, SURFACE_STATE, Surface - * Format: - * - * If Number of Multisamples is set to a value other than - * MULTISAMPLECOUNT_1, this field cannot be set to the following - * formats: any format with greater than 64 bits per element, any - * compressed texture format (BC*), and any YCRCB* format. - */ - if (fmtl->bpb > 64) - return false; - if (isl_format_is_compressed(info->format)) - return false; - if (isl_format_is_yuv(info->format)) + if (!isl_format_supports_multisampling(dev->info, info->format)) return false; /* From the Ivybridge PRM, Volume 4 Part 1 p73, SURFACE_STATE, Number of |