Changed address space of default samplers.

PiperOrigin-RevId: 316728298
Change-Id: Ib74d1bbbb5561a29aa569e2960a3776eceb9f237
This commit is contained in:
Raman Sarokin 2020-06-16 11:57:20 -07:00 committed by TensorFlower Gardener
parent 8d9fee90ba
commit dd3e910e21

View File

@ -119,13 +119,13 @@ std::string GetCommonDefines(CalculationsPrecision precision) {
}
result +=
"const sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | "
"__constant sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | "
"CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;\n";
result +=
"const sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | "
"__constant sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | "
"CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;\n";
result +=
"const sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | "
"__constant sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | "
"CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;\n";
return result;