[IE CLDNN] Fix X/Y swap in NV12 shared surface input layout (#2949)

This commit is contained in:
Mikhail Letavin 2020-11-03 13:29:36 +03:00 committed by GitHub
parent 4085785d73
commit 78bf78660f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5747,9 +5747,9 @@ void Program::AddInputPrimitive(cldnn::topology& topology, InputInfo::Ptr inputI
std::string uv_name = inputName + "_UV";
cldnn::layout y_layout(DataTypeFromPrecision(ip),
cldnn::format::nv12, { 1, 1, height, width });
cldnn::format::nv12, { 1, 1, width, height });
cldnn::layout uv_layout(DataTypeFromPrecision(ip),
cldnn::format::nv12, { 1, 2, height / 2, width / 2 });
cldnn::format::nv12, { 1, 2, width / 2, height / 2 });
auto inputY = cldnn::input_layout(y_name, y_layout);
auto inputUV = cldnn::input_layout(uv_name, uv_layout);