mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Update GTPin headers revision
Change-Id: Iaca7433bb11b4da129a7d5b3ea837eec20821ac7
This commit is contained in:
@ -22,7 +22,7 @@ components:
|
|||||||
internal:
|
internal:
|
||||||
branch: master
|
branch: master
|
||||||
dest_dir: internal
|
dest_dir: internal
|
||||||
revision: 66b31e46172f33de0430bae58e01471670991f0f
|
revision: 2a7a6dcaf492b1c12edca1867e3adca9b771a929
|
||||||
type: git
|
type: git
|
||||||
khronos:
|
khronos:
|
||||||
branch: master
|
branch: master
|
||||||
|
@ -33,7 +33,7 @@ using namespace gtpin;
|
|||||||
|
|
||||||
namespace OCLRT {
|
namespace OCLRT {
|
||||||
|
|
||||||
GTPIN_DI_STATUS gtpinCreateBuffer(context_handle_t context, uint32_t reqSize, resource_handle_t *pResource) {
|
GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinCreateBuffer(context_handle_t context, uint32_t reqSize, resource_handle_t *pResource) {
|
||||||
cl_int diag = CL_SUCCESS;
|
cl_int diag = CL_SUCCESS;
|
||||||
Context *pContext = castToObject<Context>((cl_context)context);
|
Context *pContext = castToObject<Context>((cl_context)context);
|
||||||
if ((pContext == nullptr) || (pResource == nullptr)) {
|
if ((pContext == nullptr) || (pResource == nullptr)) {
|
||||||
@ -49,7 +49,7 @@ GTPIN_DI_STATUS gtpinCreateBuffer(context_handle_t context, uint32_t reqSize, re
|
|||||||
return GTPIN_DI_SUCCESS;
|
return GTPIN_DI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
GTPIN_DI_STATUS gtpinFreeBuffer(context_handle_t context, resource_handle_t resource) {
|
GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinFreeBuffer(context_handle_t context, resource_handle_t resource) {
|
||||||
cl_mem buffer = (cl_mem)resource;
|
cl_mem buffer = (cl_mem)resource;
|
||||||
Context *pContext = castToObject<Context>((cl_context)context);
|
Context *pContext = castToObject<Context>((cl_context)context);
|
||||||
if ((pContext == nullptr) || (buffer == nullptr)) {
|
if ((pContext == nullptr) || (buffer == nullptr)) {
|
||||||
@ -64,7 +64,7 @@ GTPIN_DI_STATUS gtpinFreeBuffer(context_handle_t context, resource_handle_t reso
|
|||||||
return GTPIN_DI_SUCCESS;
|
return GTPIN_DI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
GTPIN_DI_STATUS gtpinMapBuffer(context_handle_t context, resource_handle_t resource, uint8_t **pAddress) {
|
GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinMapBuffer(context_handle_t context, resource_handle_t resource, uint8_t **pAddress) {
|
||||||
cl_mem buffer = (cl_mem)resource;
|
cl_mem buffer = (cl_mem)resource;
|
||||||
Context *pContext = castToObject<Context>((cl_context)context);
|
Context *pContext = castToObject<Context>((cl_context)context);
|
||||||
if ((pContext == nullptr) || (buffer == nullptr) || (pAddress == nullptr)) {
|
if ((pContext == nullptr) || (buffer == nullptr) || (pAddress == nullptr)) {
|
||||||
@ -78,7 +78,7 @@ GTPIN_DI_STATUS gtpinMapBuffer(context_handle_t context, resource_handle_t resou
|
|||||||
return GTPIN_DI_SUCCESS;
|
return GTPIN_DI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
GTPIN_DI_STATUS gtpinUnmapBuffer(context_handle_t context, resource_handle_t resource) {
|
GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinUnmapBuffer(context_handle_t context, resource_handle_t resource) {
|
||||||
cl_mem buffer = (cl_mem)resource;
|
cl_mem buffer = (cl_mem)resource;
|
||||||
Context *pContext = castToObject<Context>((cl_context)context);
|
Context *pContext = castToObject<Context>((cl_context)context);
|
||||||
if ((pContext == nullptr) || (buffer == nullptr)) {
|
if ((pContext == nullptr) || (buffer == nullptr)) {
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace OCLRT {
|
namespace OCLRT {
|
||||||
gtpin::GTPIN_DI_STATUS gtpinCreateBuffer(gtpin::context_handle_t context, uint32_t size, gtpin::resource_handle_t *pResource);
|
gtpin::GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinCreateBuffer(gtpin::context_handle_t context, uint32_t size, gtpin::resource_handle_t *pResource);
|
||||||
gtpin::GTPIN_DI_STATUS gtpinFreeBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource);
|
gtpin::GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinFreeBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource);
|
||||||
gtpin::GTPIN_DI_STATUS gtpinMapBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource, uint8_t **pAddress);
|
gtpin::GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinMapBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource, uint8_t **pAddress);
|
||||||
gtpin::GTPIN_DI_STATUS gtpinUnmapBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource);
|
gtpin::GTPIN_DI_STATUS GTPIN_DRIVER_CALLCONV gtpinUnmapBuffer(gtpin::context_handle_t context, gtpin::resource_handle_t resource);
|
||||||
} // namespace OCLRT
|
} // namespace OCLRT
|
||||||
|
Reference in New Issue
Block a user