P4 to Git Change 1524071 by gandryey@gera-w8 on 2018/03/07 17:26:30
SWDEV-147487 - DX9/DX11 texture and OpenCL interop for YUY2
- Enable YUY2 support for DX11 and DX9. YUY2 contains just one plane of interleaved Y0UY1V components and can be mapped to (CL_RGBA, CL_UNSIGNED_INT8) with image width reduced by 2. YUY2 provides better quality due to 16bit data per pixel
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#33 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#241 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#49 edit
[ROCm/clr commit: fd3644ee58]
Этот коммит содержится в:
@@ -789,6 +789,8 @@ bool Resource::create(MemoryType memType, CreateParams* params) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
LogError("Unknown Interop View Type");
|
||||
calRes = false;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user