Lines Matching refs:cmd
113 } *cmd; in vmw_hw_context_destroy() local
131 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
132 if (unlikely(cmd == NULL)) { in vmw_hw_context_destroy()
138 cmd->header.id = cpu_to_le32(SVGA_3D_CMD_CONTEXT_DESTROY); in vmw_hw_context_destroy()
139 cmd->header.size = cpu_to_le32(sizeof(cmd->body)); in vmw_hw_context_destroy()
140 cmd->body.cid = cpu_to_le32(res->id); in vmw_hw_context_destroy()
142 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
192 } *cmd; in vmw_context_init() local
211 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_context_init()
212 if (unlikely(cmd == NULL)) { in vmw_context_init()
218 cmd->header.id = cpu_to_le32(SVGA_3D_CMD_CONTEXT_DEFINE); in vmw_context_init()
219 cmd->header.size = cpu_to_le32(sizeof(cmd->body)); in vmw_context_init()
220 cmd->body.cid = cpu_to_le32(res->id); in vmw_context_init()
222 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_init()
256 } *cmd; in vmw_gb_context_create() local
272 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
273 if (unlikely(cmd == NULL)) { in vmw_gb_context_create()
280 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_CONTEXT; in vmw_gb_context_create()
281 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_create()
282 cmd->body.cid = res->id; in vmw_gb_context_create()
283 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
301 } *cmd; in vmw_gb_context_bind() local
306 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
307 if (unlikely(cmd == NULL)) { in vmw_gb_context_bind()
313 cmd->header.id = SVGA_3D_CMD_BIND_GB_CONTEXT; in vmw_gb_context_bind()
314 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_bind()
315 cmd->body.cid = res->id; in vmw_gb_context_bind()
316 cmd->body.mobid = bo->mem.start; in vmw_gb_context_bind()
317 cmd->body.validContents = res->backup_dirty; in vmw_gb_context_bind()
319 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
343 uint8_t *cmd; in vmw_gb_context_unbind() local
353 cmd = vmw_fifo_reserve(dev_priv, submit_size); in vmw_gb_context_unbind()
354 if (unlikely(cmd == NULL)) { in vmw_gb_context_unbind()
361 cmd2 = (void *) cmd; in vmw_gb_context_unbind()
363 cmd1 = (void *) cmd; in vmw_gb_context_unbind()
398 } *cmd; in vmw_gb_context_destroy() local
403 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
404 if (unlikely(cmd == NULL)) { in vmw_gb_context_destroy()
410 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_CONTEXT; in vmw_gb_context_destroy()
411 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_destroy()
412 cmd->body.cid = res->id; in vmw_gb_context_destroy()
413 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
553 } *cmd; in vmw_context_scrub_shader() local
555 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_context_scrub_shader()
556 if (unlikely(cmd == NULL)) { in vmw_context_scrub_shader()
562 cmd->header.id = SVGA_3D_CMD_SET_SHADER; in vmw_context_scrub_shader()
563 cmd->header.size = sizeof(cmd->body); in vmw_context_scrub_shader()
564 cmd->body.cid = bi->ctx->id; in vmw_context_scrub_shader()
565 cmd->body.type = bi->i1.shader_type; in vmw_context_scrub_shader()
566 cmd->body.shid = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID); in vmw_context_scrub_shader()
567 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_scrub_shader()
586 } *cmd; in vmw_context_scrub_render_target() local
588 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_context_scrub_render_target()
589 if (unlikely(cmd == NULL)) { in vmw_context_scrub_render_target()
595 cmd->header.id = SVGA_3D_CMD_SETRENDERTARGET; in vmw_context_scrub_render_target()
596 cmd->header.size = sizeof(cmd->body); in vmw_context_scrub_render_target()
597 cmd->body.cid = bi->ctx->id; in vmw_context_scrub_render_target()
598 cmd->body.type = bi->i1.rt_type; in vmw_context_scrub_render_target()
599 cmd->body.target.sid = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID); in vmw_context_scrub_render_target()
600 cmd->body.target.face = 0; in vmw_context_scrub_render_target()
601 cmd->body.target.mipmap = 0; in vmw_context_scrub_render_target()
602 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_scrub_render_target()
626 } *cmd; in vmw_context_scrub_texture() local
628 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_context_scrub_texture()
629 if (unlikely(cmd == NULL)) { in vmw_context_scrub_texture()
636 cmd->header.id = SVGA_3D_CMD_SETTEXTURESTATE; in vmw_context_scrub_texture()
637 cmd->header.size = sizeof(cmd->body); in vmw_context_scrub_texture()
638 cmd->body.c.cid = bi->ctx->id; in vmw_context_scrub_texture()
639 cmd->body.s1.stage = bi->i1.texture_stage; in vmw_context_scrub_texture()
640 cmd->body.s1.name = SVGA3D_TS_BIND_TEXTURE; in vmw_context_scrub_texture()
641 cmd->body.s1.value = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID); in vmw_context_scrub_texture()
642 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_scrub_texture()