[IE CLDNN] Fix X/Y swap in NV12 shared surface input layout (#2949)
This commit is contained in:
parent
4085785d73
commit
78bf78660f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user