Lines Matching refs:cmdbuf
74 #define VSP_RELOC_CMDBUF(dest, offset, buf) vsp_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 0, (uint32_t *)cmdbuf->cmd_start)
88 #define vsp_cmdbuf_insert_command(cmdbuf,context_id, ref_buf,type,offset,size) \
89 do { *cmdbuf->cmd_idx++ = context_id; *cmdbuf->cmd_idx++ = type;\
90 VSP_RELOC_CMDBUF(cmdbuf->cmd_idx++, offset, ref_buf);\
91 *cmdbuf->cmd_idx++ = size; *cmdbuf->cmd_idx++ = 0;\
92 *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; \
93 *cmdbuf->cmd_idx++ = wsbmKBufHandle(wsbmKBuf((ref_buf)->drm_buf));} while(0)
97 do { vsp_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(pic_param_dest), ref_buf, offset, 0XFFFFFFFF, 0, 0, dst_buf_loc,(uint32_t *)pic_param_buf_start); } while(0)
98 #define vsp_cmdbuf_fence_pic_param(cmdbuf, pic_param_handler) \
99 do { *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = VspFencePictureParamCommand; *cmdbuf->cmd_idx++ = pic_param_handler; *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0;} while(0)
101 #define vsp_cmdbuf_vpp_context(cmdbuf, type, buffer, size) \
102 do { *cmdbuf->cmd_idx++ = VSP_API_GENERIC_CONTEXT_ID; \
103 *cmdbuf->cmd_idx++ = type; \
104 *cmdbuf->cmd_idx++ = buffer; \
105 *cmdbuf->cmd_idx++ = size; \
106 *cmdbuf->cmd_idx++ = 0; \
107 *cmdbuf->cmd_idx++ = 0; \
108 *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0;} while(0)
110 #define vsp_cmdbuf_fence_compose_param(cmdbuf, pic_param_handler) \
112 *cmdbuf->cmd_idx++ = 0; \
113 *cmdbuf->cmd_idx++ = VspFenceComposeCommand; \
114 *cmdbuf->cmd_idx++ = pic_param_handler; \
115 *cmdbuf->cmd_idx++ = 0; \
116 *cmdbuf->cmd_idx++ = 0; \
117 *cmdbuf->cmd_idx++ = 0; \
118 *cmdbuf->cmd_idx++ = 0; \
119 *cmdbuf->cmd_idx++ = 0; \
122 #define vsp_cmdbuf_compose_end(cmdbuf) \
123 do { *cmdbuf->cmd_idx++ = 0; \
124 *cmdbuf->cmd_idx++ = VssWiDi_ComposeEndOfSequenceCommand; \
125 *cmdbuf->cmd_idx++ = 0; \
126 *cmdbuf->cmd_idx++ = 0; \
127 *cmdbuf->cmd_idx++ = 0; \
128 *cmdbuf->cmd_idx++ = 0; \
129 *cmdbuf->cmd_idx++ = 0; \
130 *cmdbuf->cmd_idx++ = 0;} while(0)
137 vsp_cmdbuf_p cmdbuf
143 void vsp_cmdbuf_destroy(vsp_cmdbuf_p cmdbuf);
150 int vsp_cmdbuf_reset(vsp_cmdbuf_p cmdbuf);
157 int vsp_cmdbuf_unmap(vsp_cmdbuf_p cmdbuf);
160 * Advances "obj_context" to the next cmdbuf
167 * Submits the current cmdbuf
174 * Flushes the pending cmdbuf
180 void vsp_cmdbuf_add_relocation(vsp_cmdbuf_p cmdbuf,
189 int vsp_cmdbuf_buffer_ref(vsp_cmdbuf_p cmdbuf, psb_buffer_p buf);