panfrost: Fix stride check when mipmapping
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 8 Jun 2019 00:07:13 +0000 (17:07 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Jun 2019 13:47:18 +0000 (06:47 -0700)
commitd89e0716a15982528990efc888ad01bb2918e6e1
tree771ec2fadafaa9f3d5267608ade74d0852aeade7
parent416fc3b5ef8606408fd28ff0a2326e9e58a92632
panfrost: Fix stride check when mipmapping

Now that we support custom strides on mipmapped textures (theoretically,
at least), extend the stride check to support mipmaps.  Fixes incorrect
strides of linear windows in Weston.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_context.c