Lines Matching refs:swc
58 void surface_to_surfaceid(struct svga_winsys_context *swc, // IN in surface_to_surfaceid() argument
65 swc->surface_relocation(swc, &id->sid, s->handle, flags); in surface_to_surfaceid()
70 swc->surface_relocation(swc, &id->sid, NULL, flags); in surface_to_surfaceid()
105 SVGA3D_FIFOReserve(struct svga_winsys_context *swc, in SVGA3D_FIFOReserve() argument
112 header = swc->reserve(swc, sizeof *header + cmdSize, nr_relocs); in SVGA3D_FIFOReserve()
124 SVGA_FIFOCommitAll(struct svga_winsys_context *swc) in SVGA_FIFOCommitAll() argument
126 swc->commit(swc); in SVGA_FIFOCommitAll()
159 SVGA3D_DefineContext(struct svga_winsys_context *swc) // IN in SVGA3D_DefineContext() argument
163 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DefineContext()
168 cmd->cid = swc->cid; in SVGA3D_DefineContext()
170 swc->commit(swc); in SVGA3D_DefineContext()
193 SVGA3D_DestroyContext(struct svga_winsys_context *swc) // IN in SVGA3D_DestroyContext() argument
197 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroyContext()
202 cmd->cid = swc->cid; in SVGA3D_DestroyContext()
204 swc->commit(swc); in SVGA3D_DestroyContext()
267 SVGA3D_BeginDefineSurface(struct svga_winsys_context *swc, in SVGA3D_BeginDefineSurface() argument
277 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginDefineSurface()
283 swc->surface_relocation(swc, &cmd->sid, sid, SVGA_RELOC_WRITE); in SVGA3D_BeginDefineSurface()
315 SVGA3D_DefineSurface2D(struct svga_winsys_context *swc, // IN in SVGA3D_DefineSurface2D() argument
325 ret = SVGA3D_BeginDefineSurface(swc, in SVGA3D_DefineSurface2D()
336 swc->commit(swc);; in SVGA3D_DefineSurface2D()
359 SVGA3D_DestroySurface(struct svga_winsys_context *swc, in SVGA3D_DestroySurface() argument
364 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroySurface()
369 swc->surface_relocation(swc, &cmd->sid, sid, SVGA_RELOC_READ); in SVGA3D_DestroySurface()
370 swc->commit(swc);; in SVGA3D_DestroySurface()
419 SVGA3D_SurfaceDMA(struct svga_winsys_context *swc, in SVGA3D_SurfaceDMA() argument
446 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SurfaceDMA()
453 swc->region_relocation(swc, &cmd->guest.ptr, st->hwbuf, 0, region_flags); in SVGA3D_SurfaceDMA()
456 swc->surface_relocation(swc, &cmd->host.sid, texture->handle, surface_flags); in SVGA3D_SurfaceDMA()
469 swc->commit(swc); in SVGA3D_SurfaceDMA()
476 SVGA3D_BufferDMA(struct svga_winsys_context *swc, in SVGA3D_BufferDMA() argument
504 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BufferDMA()
511 swc->region_relocation(swc, &cmd->guest.ptr, guest, 0, region_flags); in SVGA3D_BufferDMA()
514 swc->surface_relocation(swc, &cmd->host.sid, host, surface_flags); in SVGA3D_BufferDMA()
536 swc->commit(swc); in SVGA3D_BufferDMA()
571 SVGA3D_SetRenderTarget(struct svga_winsys_context *swc, in SVGA3D_SetRenderTarget() argument
577 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetRenderTarget()
583 cmd->cid = swc->cid; in SVGA3D_SetRenderTarget()
587 surface_to_surfaceid(swc, surface, &cmd->target, SVGA_RELOC_WRITE); in SVGA3D_SetRenderTarget()
589 swc->commit(swc); in SVGA3D_SetRenderTarget()
628 SVGA3D_DefineShader(struct svga_winsys_context *swc, in SVGA3D_DefineShader() argument
638 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DefineShader()
644 cmd->cid = swc->cid; in SVGA3D_DefineShader()
648 swc->commit(swc); in SVGA3D_DefineShader()
674 SVGA3D_DestroyShader(struct svga_winsys_context *swc, in SVGA3D_DestroyShader() argument
680 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroyShader()
686 cmd->cid = swc->cid; in SVGA3D_DestroyShader()
689 swc->commit(swc); in SVGA3D_DestroyShader()
719 SVGA3D_SetShaderConst(struct svga_winsys_context *swc, in SVGA3D_SetShaderConst() argument
727 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShaderConst()
733 cmd->cid = swc->cid; in SVGA3D_SetShaderConst()
755 swc->commit(swc); in SVGA3D_SetShaderConst()
785 SVGA3D_SetShaderConsts(struct svga_winsys_context *swc, in SVGA3D_SetShaderConsts() argument
794 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShaderConsts()
801 cmd->cid = swc->cid; in SVGA3D_SetShaderConsts()
808 swc->commit(swc); in SVGA3D_SetShaderConsts()
838 SVGA3D_SetShader(struct svga_winsys_context *swc, in SVGA3D_SetShader() argument
844 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShader()
850 cmd->cid = swc->cid; in SVGA3D_SetShader()
853 swc->commit(swc); in SVGA3D_SetShader()
885 SVGA3D_BeginClear(struct svga_winsys_context *swc, in SVGA3D_BeginClear() argument
895 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginClear()
902 cmd->cid = swc->cid; in SVGA3D_BeginClear()
930 SVGA3D_ClearRect(struct svga_winsys_context *swc, in SVGA3D_ClearRect() argument
943 ret = SVGA3D_BeginClear(swc, flags, color, depth, stencil, &rect, 1); in SVGA3D_ClearRect()
952 swc->commit(swc); in SVGA3D_ClearRect()
984 SVGA3D_BeginDrawPrimitives(struct svga_winsys_context *swc, in SVGA3D_BeginDrawPrimitives() argument
996 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginDrawPrimitives()
1003 cmd->cid = swc->cid; in SVGA3D_BeginDrawPrimitives()
1041 SVGA3D_BeginSurfaceCopy(struct svga_winsys_context *swc, in SVGA3D_BeginSurfaceCopy() argument
1050 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSurfaceCopy()
1056 surface_to_surfaceid(swc, src, &cmd->src, SVGA_RELOC_READ); in SVGA3D_BeginSurfaceCopy()
1057 surface_to_surfaceid(swc, dest, &cmd->dest, SVGA_RELOC_WRITE); in SVGA3D_BeginSurfaceCopy()
1084 SVGA3D_SurfaceStretchBlt(struct svga_winsys_context *swc, in SVGA3D_SurfaceStretchBlt() argument
1093 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SurfaceStretchBlt()
1099 surface_to_surfaceid(swc, src, &cmd->src, SVGA_RELOC_READ); in SVGA3D_SurfaceStretchBlt()
1100 surface_to_surfaceid(swc, dest, &cmd->dest, SVGA_RELOC_WRITE); in SVGA3D_SurfaceStretchBlt()
1104 swc->commit(swc); in SVGA3D_SurfaceStretchBlt()
1129 SVGA3D_SetViewport(struct svga_winsys_context *swc, in SVGA3D_SetViewport() argument
1134 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetViewport()
1140 cmd->cid = swc->cid; in SVGA3D_SetViewport()
1142 swc->commit(swc); in SVGA3D_SetViewport()
1168 SVGA3D_SetScissorRect(struct svga_winsys_context *swc, in SVGA3D_SetScissorRect() argument
1173 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetScissorRect()
1179 cmd->cid = swc->cid; in SVGA3D_SetScissorRect()
1181 swc->commit(swc); in SVGA3D_SetScissorRect()
1205 SVGA3D_SetClipPlane(struct svga_winsys_context *swc, in SVGA3D_SetClipPlane() argument
1210 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetClipPlane()
1216 cmd->cid = swc->cid; in SVGA3D_SetClipPlane()
1222 swc->commit(swc); in SVGA3D_SetClipPlane()
1245 SVGA3D_SetZRange(struct svga_winsys_context *swc, in SVGA3D_SetZRange() argument
1251 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetZRange()
1257 cmd->cid = swc->cid; in SVGA3D_SetZRange()
1260 swc->commit(swc); in SVGA3D_SetZRange()
1292 SVGA3D_BeginSetTextureState(struct svga_winsys_context *swc, in SVGA3D_BeginSetTextureState() argument
1298 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSetTextureState()
1305 cmd->cid = swc->cid; in SVGA3D_BeginSetTextureState()
1338 SVGA3D_BeginSetRenderState(struct svga_winsys_context *swc, in SVGA3D_BeginSetRenderState() argument
1344 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSetRenderState()
1351 cmd->cid = swc->cid; in SVGA3D_BeginSetRenderState()
1375 SVGA3D_BeginQuery(struct svga_winsys_context *swc, in SVGA3D_BeginQuery() argument
1380 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginQuery()
1387 cmd->cid = swc->cid; in SVGA3D_BeginQuery()
1390 swc->commit(swc); in SVGA3D_BeginQuery()
1413 SVGA3D_EndQuery(struct svga_winsys_context *swc, in SVGA3D_EndQuery() argument
1419 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_EndQuery()
1426 cmd->cid = swc->cid; in SVGA3D_EndQuery()
1429 swc->region_relocation(swc, &cmd->guestResult, buffer, 0, in SVGA3D_EndQuery()
1432 swc->commit(swc); in SVGA3D_EndQuery()
1460 SVGA3D_WaitForQuery(struct svga_winsys_context *swc, in SVGA3D_WaitForQuery() argument
1466 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_WaitForQuery()
1473 cmd->cid = swc->cid; in SVGA3D_WaitForQuery()
1476 swc->region_relocation(swc, &cmd->guestResult, buffer, 0, in SVGA3D_WaitForQuery()
1479 swc->commit(swc); in SVGA3D_WaitForQuery()