mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
Rename D3DFMTCLImageFormat to D3DtoClFormatConversions
Change-Id: Ie2be88e628963dd071272b03049a4d7586a4d5a1
This commit is contained in:
@@ -711,14 +711,14 @@ cl_int CL_API_CALL clGetSupportedDX9MediaSurfaceFormatsINTEL(cl_context context,
|
||||
}
|
||||
|
||||
cl_uint i = 0;
|
||||
for (auto format : D3DSurface::D3DFMTCLImageFormat) {
|
||||
for (auto format : D3DSurface::D3DtoClFormatConversions) {
|
||||
if (i >= numEntries) {
|
||||
break;
|
||||
}
|
||||
dx9Formats[i++] = format.first;
|
||||
}
|
||||
|
||||
*numImageFormats = static_cast<cl_uint>(D3DSurface::D3DFMTCLImageFormat.size());
|
||||
*numImageFormats = static_cast<cl_uint>(D3DSurface::D3DtoClFormatConversions.size());
|
||||
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user