From dc1424050e47cd239ad26c4f12fb3a0e4289d682 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 16 Jun 2023 03:17:28 +0200 Subject: Adopt to GlueGen change: Drop ManualStaticInitCall, PointerBuffer.ELEMENT_SIZE -> AbstractBuffer.POINTER_SIZE --- make/config/cl-impl-11.cfg | 1 - make/config/cl-impl-12.cfg | 1 - make/config/cl-impl-20.cfg | 1 - src/com/jogamp/opencl/CLCommandQueue.java | 3 ++- src/com/jogamp/opencl/CLEventList.java | 4 +++- src/com/jogamp/opencl/CLProgram.java | 5 +++-- src/com/jogamp/opencl/impl/CLTLAccessorFactory.java | 4 +++- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/make/config/cl-impl-11.cfg b/make/config/cl-impl-11.cfg index 961492a3..dbda1c09 100644 --- a/make/config/cl-impl-11.cfg +++ b/make/config/cl-impl-11.cfg @@ -105,6 +105,5 @@ ForceProcAddressGen clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLImpl11 clImplCustomCode11.java IncludeAs CustomJavaCode CLImpl11 clImplCustomCode.java -ManualStaticInitCall CLImpl11 IncludeAs CustomCCode clImplCustomCode11.c diff --git a/make/config/cl-impl-12.cfg b/make/config/cl-impl-12.cfg index c8b0c839..467df7d3 100644 --- a/make/config/cl-impl-12.cfg +++ b/make/config/cl-impl-12.cfg @@ -112,7 +112,6 @@ ForceProcAddressGen clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLImpl12 clImplCustomCode12.java IncludeAs CustomJavaCode CLImpl12 clImplCustomCode.java -ManualStaticInitCall CLImpl12 IncludeAs CustomCCode clImplCustomCode.c IncludeAs CustomCCode clImplCustomCode12.c diff --git a/make/config/cl-impl-20.cfg b/make/config/cl-impl-20.cfg index d446da19..69a6e57f 100644 --- a/make/config/cl-impl-20.cfg +++ b/make/config/cl-impl-20.cfg @@ -112,7 +112,6 @@ ForceProcAddressGen clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLImpl20 clImplCustomCode20.java IncludeAs CustomJavaCode CLImpl20 clImplCustomCode.java -ManualStaticInitCall CLImpl20 IncludeAs CustomCCode clImplCustomCode.c IncludeAs CustomCCode clImplCustomCode20.c diff --git a/src/com/jogamp/opencl/CLCommandQueue.java b/src/com/jogamp/opencl/CLCommandQueue.java index f95576b6..7e78be4a 100644 --- a/src/com/jogamp/opencl/CLCommandQueue.java +++ b/src/com/jogamp/opencl/CLCommandQueue.java @@ -43,6 +43,7 @@ import java.util.Arrays; import java.util.EnumSet; import java.util.List; +import com.jogamp.common.nio.AbstractBuffer; import com.jogamp.common.nio.CachedBufferFactory; import com.jogamp.common.nio.PointerBuffer; import com.jogamp.opencl.gl.CLGLObject; @@ -82,7 +83,7 @@ public class CLCommandQueue extends CLObjectResource { this.properties = properties; this.cl = context.getPlatform().getCLBinding(); - final int pbsize = PointerBuffer.ELEMENT_SIZE; + final int pbsize = AbstractBuffer.POINTER_SIZE; final CachedBufferFactory factory = CachedBufferFactory.create(9*pbsize + 4, true); this.ibA = PointerBuffer.wrap(factory.newDirectByteBuffer(3*pbsize)); diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java index 806a0661..f890558a 100644 --- a/src/com/jogamp/opencl/CLEventList.java +++ b/src/com/jogamp/opencl/CLEventList.java @@ -28,6 +28,7 @@ package com.jogamp.opencl; +import com.jogamp.common.nio.AbstractBuffer; import com.jogamp.common.nio.CachedBufferFactory; import com.jogamp.common.nio.PointerBuffer; import java.util.Iterator; @@ -85,7 +86,7 @@ public final class CLEventList implements CLResource, AutoCloseable, Iterable