[PATCH 3/7] d3dx9: Pass a struct d3dx_effect to get_valid_pass()