Searched refs:formatMax (Results 1 – 6 of 6) sorted by relevance
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_write_1D.cpp | 105 int formatMax = 255 + test_range_ext; in test_write_image_1D() local 114 pixel_value = random_in_range( formatMin, (int)formatMax, d ); in test_write_image_1D() 133 float formatMax = (float)get_format_max_int( imageInfo->format ); in test_write_image_1D() local 134 inputValues[ i++ ] = 4.0f / formatMax; in test_write_image_1D() 135 inputValues[ i++ ] = 4.3f / formatMax; in test_write_image_1D() 136 inputValues[ i++ ] = 4.5f / formatMax; in test_write_image_1D() 137 inputValues[ i++ ] = 4.7f / formatMax; in test_write_image_1D() 138 inputValues[ i++ ] = 5.0f / formatMax; in test_write_image_1D() 139 inputValues[ i++ ] = 5.3f / formatMax; in test_write_image_1D() 140 inputValues[ i++ ] = 5.5f / formatMax; in test_write_image_1D() [all …]
|
D | test_write_1D_array.cpp | 114 int formatMax = 255 + test_range_ext; in test_write_image_1D_array() local 123 pixel_value = random_in_range( formatMin, (int)formatMax, d ); in test_write_image_1D_array() 142 float formatMax = (float)get_format_max_int( imageInfo->format ); in test_write_image_1D_array() local 143 inputValues[ i++ ] = 4.0f / formatMax; in test_write_image_1D_array() 144 inputValues[ i++ ] = 4.3f / formatMax; in test_write_image_1D_array() 145 inputValues[ i++ ] = 4.5f / formatMax; in test_write_image_1D_array() 146 inputValues[ i++ ] = 4.7f / formatMax; in test_write_image_1D_array() 147 inputValues[ i++ ] = 5.0f / formatMax; in test_write_image_1D_array() 148 inputValues[ i++ ] = 5.3f / formatMax; in test_write_image_1D_array() 149 inputValues[ i++ ] = 5.5f / formatMax; in test_write_image_1D_array() [all …]
|
D | test_write_2D_array.cpp | 138 int formatMax = 255 + test_range_ext; in test_write_image_2D_array() local 149 pixel_value = random_in_range( formatMin, (int)formatMax, d ); in test_write_image_2D_array() 168 float formatMax = (float)get_format_max_int( imageInfo->format ); in test_write_image_2D_array() local 169 inputValues[ i++ ] = 4.0f / formatMax; in test_write_image_2D_array() 170 inputValues[ i++ ] = 4.3f / formatMax; in test_write_image_2D_array() 171 inputValues[ i++ ] = 4.5f / formatMax; in test_write_image_2D_array() 172 inputValues[ i++ ] = 4.7f / formatMax; in test_write_image_2D_array() 173 inputValues[ i++ ] = 5.0f / formatMax; in test_write_image_2D_array() 174 inputValues[ i++ ] = 5.3f / formatMax; in test_write_image_2D_array() 175 inputValues[ i++ ] = 5.5f / formatMax; in test_write_image_2D_array() [all …]
|
D | test_write_3D.cpp | 141 int formatMax = 255 + test_range_ext; in test_write_image_3D() local 152 pixel_value = random_in_range( formatMin, (int)formatMax, d ); in test_write_image_3D() 172 float formatMax = (float)get_format_max_int( imageInfo->format ); in test_write_image_3D() local 173 inputValues[ i++ ] = 4.0f / formatMax; in test_write_image_3D() 174 inputValues[ i++ ] = 4.3f / formatMax; in test_write_image_3D() 175 inputValues[ i++ ] = 4.5f / formatMax; in test_write_image_3D() 176 inputValues[ i++ ] = 4.7f / formatMax; in test_write_image_3D() 177 inputValues[ i++ ] = 5.0f / formatMax; in test_write_image_3D() 178 inputValues[ i++ ] = 5.3f / formatMax; in test_write_image_3D() 179 inputValues[ i++ ] = 5.5f / formatMax; in test_write_image_3D() [all …]
|
D | test_write_image.cpp | 120 int formatMax = 255 + test_range_ext; in test_write_image() local 129 pixel_value = random_in_range( formatMin, (int)formatMax, d ); in test_write_image() 148 float formatMax = (float)get_format_max_int( imageInfo->format ); in test_write_image() local 149 inputValues[ i++ ] = 4.0f / formatMax; in test_write_image() 150 inputValues[ i++ ] = 4.3f / formatMax; in test_write_image() 151 inputValues[ i++ ] = 4.5f / formatMax; in test_write_image() 152 inputValues[ i++ ] = 4.7f / formatMax; in test_write_image() 153 inputValues[ i++ ] = 5.0f / formatMax; in test_write_image() 154 inputValues[ i++ ] = 5.3f / formatMax; in test_write_image() 155 inputValues[ i++ ] = 5.5f / formatMax; in test_write_image() [all …]
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 3301 size_t formatMax = get_format_max_int( imageInfo->format ); in create_random_image_data() local 3305 if( formatMax > 2147483647L ) in create_random_image_data() 3306 formatMax = 2147483647L; in create_random_image_data() 3309 if( formatMax < 2147483647L ) in create_random_image_data() 3310 formatMax += 2; in create_random_image_data() 3317 imageData[ i ] = random_in_range( formatMin, (int)formatMax, d ); in create_random_image_data() 3329 size_t formatMax = get_format_max_int( imageInfo->format ); in create_random_image_data() local 3333 if( formatMax < 4294967295LL ) in create_random_image_data() 3334 formatMax += 2; in create_random_image_data() 3339 imageData[ i ] = random_in_range( formatMin, (int)formatMax, d ); in create_random_image_data()
|