aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/skc/context.c
diff options
context:
space:
mode:
authorGravatar Allan MacKinnon <allanmac@google.com>2018-06-21 09:09:56 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-21 16:52:47 +0000
commitc110e7941e4e051ad9004412de7b419da8bcf270 (patch)
treef3f0bfab677b0581d237db540b19bb2e97d40338 /src/compute/skc/context.c
parent867ce8fc8eef76e26b1e56be66badffc3d5ec3ae (diff)
OpenGL interop is simplified when the cl_context is not created by SKC.
Added GEN9 HotSort kernels so the hs_cl_gen9 lib and hs_bench_cl app can be built. Bug: skia: Change-Id: I5b21d33499a6ec3524f39a51443981802b722c8b Reviewed-on: https://skia-review.googlesource.com/136608 Commit-Queue: Allan MacKinnon <allanmac@google.com> Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/compute/skc/context.c')
-rw-r--r--src/compute/skc/context.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/compute/skc/context.c b/src/compute/skc/context.c
index 8aac2ef3d1..59c7956fd5 100644
--- a/src/compute/skc/context.c
+++ b/src/compute/skc/context.c
@@ -28,23 +28,20 @@
//
skc_err
-skc_context_create(skc_context_t * context,
- char const * target_platform_substring,
- char const * target_device_substring,
- intptr_t context_properties[])
+skc_context_create_cl(skc_context_t * context,
+ cl_context context_cl,
+ cl_device_id device_id_cl)
{
(*context) = malloc(sizeof(**context));
//
- // FIXME -- don't directly grab a CL runtime but for now juts create
- // the CL_12 runtime here
+ // FIXME -- we'll clean up context creation by platform later. For
+ // now, just create a CL_12 context.
//
skc_err err;
- err = skc_runtime_cl_12_create(*context,
- target_platform_substring,
- target_device_substring,
- context_properties);
+ err = skc_runtime_cl_12_create(*context,context_cl,device_id_cl);
+
return err;
}