The source project of this merge request has been removed.
gallium/util: replace common codes with one method
There are some common codes for checking the format should be separated or not in several methods, We should replace the common code with one abstracted method.