summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl_gen8.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-09-01 18:57:01 -0700
committerJason Ekstrand <[email protected]>2016-10-03 14:53:01 -0700
commit5637f3f1202b46ff02c80e743dd84752a040685a (patch)
tree44d2b312053204f14dc752ecb77ed13f9d5578e5 /src/intel/isl/isl_gen8.c
parentb7a0f2e1f769314d88d902c8506250d18393d359 (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_gen8.c')
-rw-r--r--src/intel/isl/isl_gen8.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/intel/isl/isl_gen8.c b/src/intel/isl/isl_gen8.c
index b456d701f09..0049614a0f4 100644
--- a/src/intel/isl/isl_gen8.c
+++ b/src/intel/isl/isl_gen8.c
@@ -79,9 +79,7 @@ gen8_choose_msaa_layout(const struct isl_device *dev,
/* More obvious restrictions */
if (isl_surf_usage_is_display(info->usage))
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;
if (isl_surf_usage_is_depth_or_stencil(info->usage) ||