Lines Matching refs:cs

102 static u32 batch_offset(const struct batch_chunk *bc, u32 *cs)  in batch_offset()  argument
104 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset()
148 u32 *cs = batch_alloc_items(state, 32, 8); in gen7_fill_surface_state() local
149 u32 offset = batch_offset(state, cs); in gen7_fill_surface_state()
155 *cs++ = SURFACE_2D << 29 | in gen7_fill_surface_state()
159 *cs++ = batch_addr(state) + dst_offset; in gen7_fill_surface_state()
161 *cs++ = ((surface_h / 4 - 1) << 16) | (surface_w / 4 - 1); in gen7_fill_surface_state()
162 *cs++ = surface_w; in gen7_fill_surface_state()
163 *cs++ = 0; in gen7_fill_surface_state()
164 *cs++ = 0; in gen7_fill_surface_state()
165 *cs++ = 0; in gen7_fill_surface_state()
168 *cs++ = SHADER_CHANNELS(4, 5, 6, 7); in gen7_fill_surface_state()
169 batch_advance(state, cs); in gen7_fill_surface_state()
180 u32 *cs = batch_alloc_items(state, 32, 8); in gen7_fill_binding_table() local
181 u32 offset = batch_offset(state, cs); in gen7_fill_binding_table()
183 *cs++ = surface_start - state->offset; in gen7_fill_binding_table()
184 *cs++ = 0; in gen7_fill_binding_table()
185 *cs++ = 0; in gen7_fill_binding_table()
186 *cs++ = 0; in gen7_fill_binding_table()
187 *cs++ = 0; in gen7_fill_binding_table()
188 *cs++ = 0; in gen7_fill_binding_table()
189 *cs++ = 0; in gen7_fill_binding_table()
190 *cs++ = 0; in gen7_fill_binding_table()
191 batch_advance(state, cs); in gen7_fill_binding_table()
215 u32 *cs = batch_alloc_items(state, 32, 8 * count); in gen7_fill_interface_descriptor() local
216 u32 offset = batch_offset(state, cs); in gen7_fill_interface_descriptor()
218 *cs++ = kernel_offset; in gen7_fill_interface_descriptor()
219 *cs++ = (1 << 7) | (1 << 13); in gen7_fill_interface_descriptor()
220 *cs++ = 0; in gen7_fill_interface_descriptor()
221 *cs++ = (binding_table - state->offset) | 1; in gen7_fill_interface_descriptor()
222 *cs++ = 0; in gen7_fill_interface_descriptor()
223 *cs++ = 0; in gen7_fill_interface_descriptor()
224 *cs++ = 0; in gen7_fill_interface_descriptor()
225 *cs++ = 0; in gen7_fill_interface_descriptor()
228 memset32(cs, 0x00, (count - 1) * 8); in gen7_fill_interface_descriptor()
229 batch_advance(state, cs + (count - 1) * 8); in gen7_fill_interface_descriptor()
238 u32 *cs = batch_alloc_items(batch, 0, 10); in gen7_emit_state_base_address() local
240 *cs++ = STATE_BASE_ADDRESS | (10 - 2); in gen7_emit_state_base_address()
242 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
244 *cs++ = (batch_addr(batch) + surface_state_base) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
246 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
248 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
250 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
253 *cs++ = 0; in gen7_emit_state_base_address()
254 *cs++ = BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
255 *cs++ = 0; in gen7_emit_state_base_address()
256 *cs++ = BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address()
257 batch_advance(batch, cs); in gen7_emit_state_base_address()
267 u32 *cs = batch_alloc_items(batch, 32, 8); in gen7_emit_vfe_state() local
269 *cs++ = MEDIA_VFE_STATE | (8 - 2); in gen7_emit_vfe_state()
272 *cs++ = 0; in gen7_emit_vfe_state()
275 *cs++ = threads << 16 | 1 << 8 | mode << 2; in gen7_emit_vfe_state()
277 *cs++ = 0; in gen7_emit_vfe_state()
280 *cs++ = urb_size << 16 | curbe_size; in gen7_emit_vfe_state()
283 *cs++ = 0; in gen7_emit_vfe_state()
284 *cs++ = 0; in gen7_emit_vfe_state()
285 *cs++ = 0; in gen7_emit_vfe_state()
286 batch_advance(batch, cs); in gen7_emit_vfe_state()
294 u32 *cs = batch_alloc_items(batch, 8, 4); in gen7_emit_interface_descriptor_load() local
296 *cs++ = MEDIA_INTERFACE_DESCRIPTOR_LOAD | (4 - 2); in gen7_emit_interface_descriptor_load()
297 *cs++ = 0; in gen7_emit_interface_descriptor_load()
298 *cs++ = count * 8 * sizeof(*cs); in gen7_emit_interface_descriptor_load()
304 *cs++ = interface_descriptor; in gen7_emit_interface_descriptor_load()
305 batch_advance(batch, cs); in gen7_emit_interface_descriptor_load()
315 u32 *cs; in gen7_emit_media_object() local
317 cs = batch_alloc_items(batch, 8, pkt); in gen7_emit_media_object()
319 *cs++ = MEDIA_OBJECT | (pkt - 2); in gen7_emit_media_object()
322 *cs++ = 0; in gen7_emit_media_object()
325 *cs++ = 0; in gen7_emit_media_object()
326 *cs++ = 0; in gen7_emit_media_object()
329 *cs++ = 0; in gen7_emit_media_object()
330 *cs++ = 0; in gen7_emit_media_object()
333 *cs++ = y_offset << 16 | x_offset; in gen7_emit_media_object()
334 *cs++ = 0; in gen7_emit_media_object()
335 *cs++ = GT3_INLINE_DATA_DELAYS; in gen7_emit_media_object()
337 batch_advance(batch, cs); in gen7_emit_media_object()
342 u32 *cs = batch_alloc_items(batch, 0, 4); in gen7_emit_pipeline_flush() local
344 *cs++ = GFX_OP_PIPE_CONTROL(4); in gen7_emit_pipeline_flush()
345 *cs++ = PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH | in gen7_emit_pipeline_flush()
349 *cs++ = 0; in gen7_emit_pipeline_flush()
350 *cs++ = 0; in gen7_emit_pipeline_flush()
352 batch_advance(batch, cs); in gen7_emit_pipeline_flush()
357 u32 *cs = batch_alloc_items(batch, 0, 10); in gen7_emit_pipeline_invalidate() local
360 *cs++ = GFX_OP_PIPE_CONTROL(5); in gen7_emit_pipeline_invalidate()
361 *cs++ = PIPE_CONTROL_STALL_AT_SCOREBOARD | in gen7_emit_pipeline_invalidate()
363 *cs++ = 0; in gen7_emit_pipeline_invalidate()
364 *cs++ = 0; in gen7_emit_pipeline_invalidate()
365 *cs++ = 0; in gen7_emit_pipeline_invalidate()
367 *cs++ = GFX_OP_PIPE_CONTROL(5); in gen7_emit_pipeline_invalidate()
368 *cs++ = PIPE_CONTROL_STATE_CACHE_INVALIDATE; in gen7_emit_pipeline_invalidate()
369 *cs++ = 0; in gen7_emit_pipeline_invalidate()
370 *cs++ = 0; in gen7_emit_pipeline_invalidate()
371 *cs++ = 0; in gen7_emit_pipeline_invalidate()
373 batch_advance(batch, cs); in gen7_emit_pipeline_invalidate()