gallium/util: remove some block alignment assertions
authorRoland Scheidegger <sroland@vmware.com>
Wed, 25 Oct 2017 00:39:20 +0000 (02:39 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 25 Oct 2017 17:52:24 +0000 (19:52 +0200)
commit20c77ae6390451a74e2463f02c49bd7fec3dd29c
treefa073698f2e0a05b4b8bb7455368a0576791f550
parent7983adc60f2f3e4390b2dee98c30d7da14732b83
gallium/util: remove some block alignment assertions

These assertions were revisited a couple of times in the past, and they
still weren't quite right.
The problem I was seeing (with some other state tracker) was a copy between
two 512x512 s3tc textures, but from mip level 0 to mip level 8. Therefore,
the destination has only size 2x2 (not a full block), so the box width/height
was only 2, causing the assertion to trigger for src alignment.
As far as I can tell, such a copy is completely legal, and because a correct
assertion would get ridiculously complicated just get rid of it for good.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_surface.c