[Beignet] [PATCH 49/57] Add cl_sampler_gen to implement cl_sampler for GEN device.
junyan.he at inbox.com
junyan.he at inbox.com
Sun Jun 11 05:50:35 UTC 2017
From: Junyan He <junyan.he at intel.com>
Signed-off-by: Junyan He <junyan.he at intel.com>
---
runtime/gen/cl_sampler_gen.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 runtime/gen/cl_sampler_gen.c
diff --git a/runtime/gen/cl_sampler_gen.c b/runtime/gen/cl_sampler_gen.c
new file mode 100644
index 0000000..b04361e
--- /dev/null
+++ b/runtime/gen/cl_sampler_gen.c
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2012 Intel Corporation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include "cl_gen.h"
+
+LOCAL cl_int
+cl_sampler_create_gen(cl_device_id device, cl_sampler sampler)
+{
+ return CL_SUCCESS;
+}
+
+LOCAL void
+cl_sampler_delete_gen(cl_device_id device, cl_sampler sampler)
+{
+}
--
2.7.4
More information about the Beignet
mailing list