mesa: fix format queries which need to check for driver support
the spec requires that these format queries return 0 for unsupported resources, but mesa was never actually querying the drivers
the spec requires that these format queries return 0 for unsupported resources, but mesa was never actually querying the drivers