summaryrefslogtreecommitdiffstats
path: root/src/intel/isl
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-10-11 18:26:15 +0100
committerEmil Velikov <[email protected]>2016-10-14 11:53:15 +0100
commit84f9ef1de4680b48d646841965f963ea2b724ab2 (patch)
tree5fa8c7dd331f62582929110f341fa8f846073747 /src/intel/isl
parentc572360c304f2e8e017b4e7355f538e060a13750 (diff)
isl/gen6: correctly check msaa layout samples count
Samples == 1 is a valid value, so returning false is plain wrong. Seeming copy/paste typo introduced since day 1. Fixes: afdadec77f5 ("isl: Implement isl_surf_init() for gen4-gen9") Cc: [email protected] Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl')
-rw-r--r--src/intel/isl/isl_gen6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl_gen6.c b/src/intel/isl/isl_gen6.c
index b30998d044d..07c08f6d31e 100644
--- a/src/intel/isl/isl_gen6.c
+++ b/src/intel/isl/isl_gen6.c
@@ -35,7 +35,7 @@ gen6_choose_msaa_layout(const struct isl_device *dev,
if (info->samples == 1) {
*msaa_layout = ISL_MSAA_LAYOUT_NONE;
- return false;
+ return true;
}
if (!isl_format_supports_multisampling(dev->info, info->format))