iris, gallium/util, crocus: Refactor checking partial clear
Reduce some duplicated code by moving them in an inline function that can be reused later.
Signed-off-by: Zhang, Jianxun jianxun.zhang@intel.com
Reduce some duplicated code by moving them in an inline function that can be reused later.
Signed-off-by: Zhang, Jianxun jianxun.zhang@intel.com