isl: Fix assertion failure for npot pixel formats
authorChad Versace <chad.versace@intel.com>
Thu, 31 Dec 2015 00:26:10 +0000 (16:26 -0800)
committerChad Versace <chad.versace@intel.com>
Thu, 31 Dec 2015 00:28:19 +0000 (16:28 -0800)
commit96d1baa88d37c51c94579f650cfd9465d28634f4
tree28a7f19aca462e6bfd36d58d97b72f20eb10990e
parent07b4f17aaffdf59d9e2e6e8e7c45be09c17ea417
isl: Fix assertion failure for npot pixel formats

When aligning to isl_format_layout::bs (which is the number of bytes in
the pixel), use isl_align_npot() instead of isl_align(), because
isl_align() works only for power-of-2 alignment.

Fixes assertion in
dEQP-VK.pipeline.image.view_type.1d.format.r16g16b16_sfloat.size.512x1.
src/isl/isl.c