summaryrefslogtreecommitdiff
path: root/src/cl_command_queue.h
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2013-09-04 14:24:54 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-09-04 14:49:27 +0800
commit1c24edd11d10a9e7f84f7f6f83f20ba8c69221c8 (patch)
treee2655adea0eb446802be0a9659bf2feda7937b50 /src/cl_command_queue.h
parentdec13b1e7f2c5a03968c80ae3a19073e9807b9e1 (diff)
Implement constant buffer based on constant cache.
Currently, simply allocate enough graphics memory as constant memory space. And bind it to bti 2. Constant cache read are backed by dword scatter read. Different from other data port messages, the address need to be dword aligned, and the addresses are in units of dword. The constant address space data are placed in order: first global constant, then the constant buffer kernel argument. v2: change function & variable naming, to make clear 'curbe' and 'constant buffer' Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/cl_command_queue.h')
-rw-r--r--src/cl_command_queue.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cl_command_queue.h b/src/cl_command_queue.h
index 135d6599..9fe1dd17 100644
--- a/src/cl_command_queue.h
+++ b/src/cl_command_queue.h
@@ -76,8 +76,5 @@ extern cl_int cl_command_queue_bind_surface(cl_command_queue, cl_kernel);
/* Bind all the image surfaces in the GPGPU state */
extern cl_int cl_command_queue_bind_image(cl_command_queue, cl_kernel);
-
-/*update constant buffer to final curbe */
-extern cl_int cl_command_queue_upload_constant_buffer(cl_kernel k, char * dst);
#endif /* __CL_COMMAND_QUEUE_H__ */