This patch fix an assertion in in-parameter-struct and normal-parameter-struct. However, both tests still fail because _mesa_get_sampler_uniform_value handles global uniform samplers only. Looking at the specification, it's not really clear that sampler*D are valid as a structure member.