gallivm: fix no-op n:n lp_build_resize()
authorRoland Scheidegger <sroland@vmware.com>
Tue, 25 Mar 2014 00:52:03 +0000 (01:52 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 26 Mar 2014 00:44:23 +0000 (01:44 +0100)
commit3b421daf32e5941801e0efb162037de4d8ca1f1d
treed731eb73957f7309b2ef89022ed22ab5fc49eb9f
parentfe635d51ff95def49f5941ebf6ca5f1dbbef3d30
gallivm: fix no-op n:n lp_build_resize()

This can get called in some circumstances if both src type and dst type
have same width (seen with float32->unorm32). While this particular case
was bogus anyway let's just fix that as it can work trivially (due to the
way it was called it actually worked anyway apart from the assert).

Reviewed-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_pack.c