mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 23:49:02 +00:00
* Update table of required image formats (#427) This commit updates the table of required image formats. The table is built depending on the profile of the device, the requested image type, and the avaiablitiy of relevent extensions. * Fixed incorrect argument to memcpy. * Made image format arrays static. * Utilised ARRAY_SIZE where appropriate. * Re-named required image format bools to be more explicit. * Made sRGBA, CL_UNORM_INT8 a required full format profile. Misinterpretation of the spec had made this optional. * check_minimum_supported: switched to using vectors. * Added CL_sRGB CL_UNORM_INT8 to full profile required formats. This matches the same channel data type requirement as CL_sRGBA. * Overload <= and >= for the Version class. * Correct the condition under which sRGB images are required. * Correct the required image formats are based on OpenCL version. The spec says that for different OpenCL versions, different sets of image formats are required. * Print out the correct OpenCL version when required image format is not found. * Improved the way in which image formats are added based on profile and version. * Potential build fix regarding isnan namespace issues. * Image Helpers: Remove duplicate copies when building required image format vectors. Also re-ordered a branch to make it clearer.
This commit is contained in:
@@ -40,6 +40,8 @@ public:
|
||||
Version(int major, int minor) : m_major(major), m_minor(minor) {}
|
||||
bool operator>(const Version& rhs) const { return to_int() > rhs.to_int(); }
|
||||
bool operator<(const Version& rhs) const { return to_int() < rhs.to_int(); }
|
||||
bool operator<=(const Version& rhs) const { return to_int() <= rhs.to_int(); }
|
||||
bool operator>=(const Version& rhs) const { return to_int() >= rhs.to_int(); }
|
||||
bool operator==(const Version& rhs) const { return to_int() == rhs.to_int(); }
|
||||
int to_int() const { return m_major * 10 + m_minor; }
|
||||
std::string to_string() const
|
||||
|
||||
Reference in New Issue
Block a user