Using object method instead of free function.

PiperOrigin-RevId: 346158964
Change-Id: I1b1c1349efab98acf0d0526709507fc5d18f6327
This commit is contained in:
Raman Sarokin 2020-12-07 12:51:54 -08:00 committed by TensorFlower Gardener
parent e5ea20dd3c
commit 2aade0a87f

View File

@ -358,12 +358,6 @@ struct GpuInfo {
bool IsCL30OrHigher() const;
};
inline bool IsOpenGl31OrAbove(const GpuInfo& gpu_info) {
return (gpu_info.opengl_info.major_version == 3 &&
gpu_info.opengl_info.minor_version >= 1) ||
gpu_info.opengl_info.major_version > 3;
}
// Currently it initializes:
// vendor
// AdrenoInfo if vendor is kQualcomm