gallivm: fix crash with seamless cube filtering with different min/mag filter