P4 to Git Change 1557880 by vsytchen@vsytchen-win10 on 2018/05/22 14:37:35
SWDEV-153682 - Report cl_amd_planar_yuv extension in OpenCL ReviewBoardURL = http://ocltc.amd.com/reviews/r/14917/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#300 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#360 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#51 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11Common.cpp#4 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11Common.h#2 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11NV12.cpp#4 delete ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11NV12.h#2 delete ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11YUY2.cpp#1 add ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/OCLDX11YUY2.h#1 add ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/TestList.cpp#2 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/dx/build/Makefile.dx#2 edit
This commit is contained in:
@@ -120,6 +120,9 @@ enum OclExtensions {
|
||||
ClAMDLiquidFlash,
|
||||
ClAmdCopyBufferP2P,
|
||||
ClAmdAssemblyProgram,
|
||||
#if defined(_WIN32)
|
||||
ClAmdPlanarYuv,
|
||||
#endif
|
||||
ClExtTotal
|
||||
};
|
||||
|
||||
@@ -163,6 +166,9 @@ static const char* OclExtensionsString[] = {"cl_khr_fp64 ",
|
||||
"cl_amd_liquid_flash ",
|
||||
"cl_amd_copy_buffer_p2p ",
|
||||
"cl_amd_assembly_program ",
|
||||
#if defined(_WIN32)
|
||||
"",
|
||||
#endif
|
||||
NULL};
|
||||
|
||||
static constexpr int AmdVendor = 0x1002;
|
||||
|
||||
@@ -403,6 +403,10 @@ bool Settings::create(const CALdeviceattribs& calAttr, bool reportAsOCL12Device,
|
||||
if (GPU_ENABLE_HW_DEBUG) {
|
||||
enableHwDebug_ = true;
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
enableExtension(ClAmdPlanarYuv);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (apuSystem_ && ((calAttr.totalVisibleHeap + calAttr.totalInvisibleHeap) < 150)) {
|
||||
|
||||
@@ -419,6 +419,10 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
if (GPU_ENABLE_HW_DEBUG) {
|
||||
enableHwDebug_ = true;
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
enableExtension(ClAmdPlanarYuv);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (apuSystem_ &&
|
||||
|
||||
Reference in New Issue
Block a user