diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp index 2111163edd..0c72ce097f 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp @@ -789,6 +789,8 @@ bool Resource::create(MemoryType memType, CreateParams* params) { break; } break; + case 3: + break; default: LogError("Unknown Interop View Type"); calRes = false; diff --git a/projects/clr/rocclr/runtime/device/pal/palresource.cpp b/projects/clr/rocclr/runtime/device/pal/palresource.cpp index cd336ebd44..1af120863d 100644 --- a/projects/clr/rocclr/runtime/device/pal/palresource.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palresource.cpp @@ -602,6 +602,9 @@ bool Resource::create(MemoryType memType, CreateParams* params) { } imgCreateInfo.depthPitch = imgCreateInfo.rowPitch * desc().height_; break; + case 3: // YUY2 format + imgCreateInfo.depthPitch = imgCreateInfo.rowPitch * desc().height_; + break; default: LogError("Unknown Interop View Type"); return false;