File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2831,8 +2831,7 @@ pi_result cuda_piSamplerCreate(pi_context context,
2831
2831
2832
2832
bool propSeen[3 ] = {false , false , false };
2833
2833
for (size_t i = 0 ; sampler_properties[i] != 0 ; i += 2 ) {
2834
- switch (sampler_properties[i])
2835
- {
2834
+ switch (sampler_properties[i]) {
2836
2835
case PI_SAMPLER_PROPERTIES_NORMALIZED_COORDS:
2837
2836
if (propSeen[0 ]) {
2838
2837
return PI_INVALID_VALUE;
@@ -2861,11 +2860,11 @@ pi_result cuda_piSamplerCreate(pi_context context,
2861
2860
}
2862
2861
}
2863
2862
2864
- if (!propSeen[0 ]){
2863
+ if (!propSeen[0 ]) {
2865
2864
retImplSampl->props_ |= CL_TRUE;
2866
2865
}
2867
2866
// Default filter mode to CL_FILTER_NEAREST
2868
- if (!propSeen[2 ]) {
2867
+ if (!propSeen[2 ]) {
2869
2868
retImplSampl->props_ |= (CL_ADDRESS_CLAMP % CL_ADDRESS_NONE) << 2 ;
2870
2869
}
2871
2870
You can’t perform that action at this time.
0 commit comments