isl/gen6: correctly check msaa layout samples count
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Oct 2016 17:26:15 +0000 (18:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:53:15 +0000 (11:53 +0100)
commit84f9ef1de4680b48d646841965f963ea2b724ab2
tree5fa8c7dd331f62582929110f341fa8f846073747
parentc572360c304f2e8e017b4e7355f538e060a13750
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: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/isl/isl_gen6.c