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]
Этот коммит содержится в:
foreman
2018-03-07 17:35:30 -05:00
родитель 5c7a90b284
Коммит 7f5373020f
2 изменённых файлов: 5 добавлений и 0 удалений
+2
Просмотреть файл
@@ -789,6 +789,8 @@ bool Resource::create(MemoryType memType, CreateParams* params) {
break;
}
break;
case 3:
break;
default:
LogError("Unknown Interop View Type");
calRes = false;
+3
Просмотреть файл
@@ -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;