mesa/formatquery: Added a func to check if the <target> is supported