[Mesa-dev] [PATCH] clover: clGetExtensionFunctionAddressForPlatform
Serge Martin
edb+mesa at sigluy.net
Tue Oct 4 19:19:43 UTC 2016
On Saturday 01 October 2016 19:03:11 Serge Martin wrote:
> On Sunday 27 September 2015 11:15:14 Serge Martin wrote:
> > add clGetExtensionFunctionAddressForPlatform (CL 1.2)
>
> ping (one year reminder :p )
CC curro
>
> > ---
> >
> > src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +-
> > src/gallium/state_trackers/clover/api/dispatch.hpp | 4 ++++
> > src/gallium/state_trackers/clover/api/platform.cpp | 16 ++++++++++++++++
> > 3 files changed, 21 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/gallium/state_trackers/clover/api/dispatch.cpp
> > b/src/gallium/state_trackers/clover/api/dispatch.cpp index
> > f10babe..8f4cfdc
> > 100644
> > --- a/src/gallium/state_trackers/clover/api/dispatch.cpp
> > +++ b/src/gallium/state_trackers/clover/api/dispatch.cpp
> > @@ -131,7 +131,7 @@ namespace clover {
> >
> > clEnqueueMigrateMemObjects,
> > clEnqueueMarkerWithWaitList,
> > clEnqueueBarrierWithWaitList,
> >
> > - NULL, // clGetExtensionFunctionAddressForPlatform
> > + GetExtensionFunctionAddressForPlatform,
> >
> > NULL, // clCreateFromGLTexture
> > NULL, // clGetDeviceIDsFromD3D11KHR
> > NULL, // clCreateFromD3D11BufferKHR
> >
> > diff --git a/src/gallium/state_trackers/clover/api/dispatch.hpp
> > b/src/gallium/state_trackers/clover/api/dispatch.hpp index
> > 7f62282..0ec1b51
> > 100644
> > --- a/src/gallium/state_trackers/clover/api/dispatch.hpp
> > +++ b/src/gallium/state_trackers/clover/api/dispatch.hpp
> > @@ -777,6 +777,10 @@ namespace clover {
> >
> > void *
> > GetExtensionFunctionAddress(const char *p_name);
> >
> > + void *
> > + GetExtensionFunctionAddressForPlatform(cl_platform_id d_platform,
> > + const char *p_name);
> > +
> >
> > cl_int
> > IcdGetPlatformIDsKHR(cl_uint num_entries, cl_platform_id
> > *rd_platforms,
> >
> > cl_uint *rnum_platforms);
> >
> > diff --git a/src/gallium/state_trackers/clover/api/platform.cpp
> > b/src/gallium/state_trackers/clover/api/platform.cpp index
> > cf71593..2bde194
> > 100644
> > --- a/src/gallium/state_trackers/clover/api/platform.cpp
> > +++ b/src/gallium/state_trackers/clover/api/platform.cpp
> > @@ -87,6 +87,16 @@ clover::GetPlatformInfo(cl_platform_id d_platform,
> > cl_platform_info param, }
> >
> > void *
> >
> > +clover::GetExtensionFunctionAddressForPlatform(cl_platform_id d_platform,
> > + const char *p_name) try {
> > + obj(d_platform);
> > + return GetExtensionFunctionAddress(p_name);
> > +
> > +} catch (error &e) {
> > + return NULL;
> > +}
> > +
> > +void *
> >
> > clover::GetExtensionFunctionAddress(const char *p_name) {
> >
> > std::string name { p_name };
> >
> > @@ -113,6 +123,12 @@ clGetExtensionFunctionAddress(const char *p_name) {
> >
> > return GetExtensionFunctionAddress(p_name);
> >
> > }
> >
> > +CLOVER_ICD_API void *
> > +clGetExtensionFunctionAddressForPlatform(cl_platform_id d_platform,
> > + const char *p_name) {
> > + return GetExtensionFunctionAddressForPlatform(d_platform, p_name);
> > +}
> > +
> >
> > CLOVER_ICD_API cl_int
> > clIcdGetPlatformIDsKHR(cl_uint num_entries, cl_platform_id *rd_platforms,
> >
> > cl_uint *rnum_platforms) {
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list