Group alloc_flagsΒΆ
-
group
alloc_flags
Defines
-
GA_BUFFER_READ_WRITE
0x00 The buffer is available for reading and writing from kernels.
This is the default (0) value.
-
GA_BUFFER_DEV
0x00 Allocate the buffer in device-only memory.
This is the default (0) value.
-
GA_BUFFER_READ_ONLY
0x01 Signal that the memory in this buffer will only be read by kernels.
You can use gpudata_write() to set the contents.
You may not call gpudata_memset() with the resulting buffer as the destination.
-
GA_BUFFER_WRITE_ONLY
0x02 Signal that the memory in this buffer will only be written by kernels (i.e. it is an output buffer).
You can read the contents with gpudata_read().
-
GA_BUFFER_INIT
0x04 Initialize the contents of the buffer with the user-supplied host buffer (
data
). This buffer must be at leastsz
large.
-
GA_BUFFER_HOST
0x08 Allocate the buffer in host-reachable memory enabling you to retrieve a pointer to the contents as the
GA_BUFFER_PROP_HOSTPOINTER
property.
-
GA_BUFFER_MASK
0xffff
-