| 182 | } |
| 183 | |
| 184 | Status ConcatZ::BindArguments() { |
| 185 | kernel_.ResetBindingCounter(); |
| 186 | for (int i = 0; i < channels_.size(); ++i) { |
| 187 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[i]->GetMemoryPtr())); |
| 188 | } |
| 189 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 190 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 191 | for (int i = 0; i < channels_.size(); ++i) { |
| 192 | int4 size(src_[i]->Width(), src_[i]->Height(), channels_[i], |
| 193 | IntegralDivideRoundUp(channels_[i], 4)); |
| 194 | RETURN_IF_ERROR(kernel_.SetBytesAuto(size)); |
| 195 | } |
| 196 | RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth())); |
| 197 | return OkStatus(); |
| 198 | } |
| 199 | |
| 200 | int3 ConcatZ::GetGridSize() const { |
| 201 | const int grid_x = dst_[0]->Width(); |
nothing calls this directly
no test coverage detected