• Home
  • Raw
  • Download

Lines Matching refs:cmd

109                    uint32 cmd,       // IN  in SVGA3D_FIFOReserve()  argument
119 header->id = cmd; in SVGA3D_FIFOReserve()
122 swc->last_command = cmd; in SVGA3D_FIFOReserve()
168 SVGA3dCmdDefineContext *cmd; in SVGA3D_DefineContext() local
170 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DefineContext()
171 SVGA_3D_CMD_CONTEXT_DEFINE, sizeof *cmd, 0); in SVGA3D_DefineContext()
172 if (!cmd) in SVGA3D_DefineContext()
175 cmd->cid = swc->cid; in SVGA3D_DefineContext()
202 SVGA3dCmdDestroyContext *cmd; in SVGA3D_DestroyContext() local
204 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroyContext()
205 SVGA_3D_CMD_CONTEXT_DESTROY, sizeof *cmd, 0); in SVGA3D_DestroyContext()
206 if (!cmd) in SVGA3D_DestroyContext()
209 cmd->cid = swc->cid; in SVGA3D_DestroyContext()
282 SVGA3dCmdDefineSurface *cmd; in SVGA3D_BeginDefineSurface() local
284 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginDefineSurface()
285 SVGA_3D_CMD_SURFACE_DEFINE, sizeof *cmd + in SVGA3D_BeginDefineSurface()
287 if (!cmd) in SVGA3D_BeginDefineSurface()
290 swc->surface_relocation(swc, &cmd->sid, NULL, sid, in SVGA3D_BeginDefineSurface()
292 cmd->surfaceFlags = flags; in SVGA3D_BeginDefineSurface()
293 cmd->format = format; in SVGA3D_BeginDefineSurface()
295 *faces = &cmd->face[0]; in SVGA3D_BeginDefineSurface()
296 *mipSizes = (SVGA3dSize*) &cmd[1]; in SVGA3D_BeginDefineSurface()
370 SVGA3dCmdDestroySurface *cmd; in SVGA3D_DestroySurface() local
372 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroySurface()
373 SVGA_3D_CMD_SURFACE_DESTROY, sizeof *cmd, 1); in SVGA3D_DestroySurface()
374 if (!cmd) in SVGA3D_DestroySurface()
377 swc->surface_relocation(swc, &cmd->sid, NULL, sid, in SVGA3D_DestroySurface()
436 SVGA3dCmdSurfaceDMA *cmd; in SVGA3D_SurfaceDMA() local
455 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SurfaceDMA()
457 sizeof *cmd + boxesSize + sizeof *pSuffix, in SVGA3D_SurfaceDMA()
459 if (!cmd) in SVGA3D_SurfaceDMA()
462 swc->region_relocation(swc, &cmd->guest.ptr, st->hwbuf, 0, region_flags); in SVGA3D_SurfaceDMA()
463 cmd->guest.pitch = st->base.stride; in SVGA3D_SurfaceDMA()
465 swc->surface_relocation(swc, &cmd->host.sid, NULL, in SVGA3D_SurfaceDMA()
467 cmd->host.face = st->slice; /* PIPE_TEX_FACE_* and SVGA3D_CUBEFACE_* match */ in SVGA3D_SurfaceDMA()
468 cmd->host.mipmap = st->base.level; in SVGA3D_SurfaceDMA()
470 cmd->transfer = transfer; in SVGA3D_SurfaceDMA()
472 memcpy(&cmd[1], boxes, boxesSize); in SVGA3D_SurfaceDMA()
474 pSuffix = (SVGA3dCmdSurfaceDMASuffix *)((uint8_t*)cmd + sizeof *cmd + boxesSize); in SVGA3D_SurfaceDMA()
496 SVGA3dCmdSurfaceDMA *cmd; in SVGA3D_BufferDMA() local
517 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BufferDMA()
519 sizeof *cmd + sizeof *box + sizeof *pSuffix, in SVGA3D_BufferDMA()
521 if (!cmd) in SVGA3D_BufferDMA()
524 swc->region_relocation(swc, &cmd->guest.ptr, guest, 0, region_flags); in SVGA3D_BufferDMA()
525 cmd->guest.pitch = 0; in SVGA3D_BufferDMA()
527 swc->surface_relocation(swc, &cmd->host.sid, in SVGA3D_BufferDMA()
529 cmd->host.face = 0; in SVGA3D_BufferDMA()
530 cmd->host.mipmap = 0; in SVGA3D_BufferDMA()
532 cmd->transfer = transfer; in SVGA3D_BufferDMA()
534 box = (SVGA3dCopyBox *)&cmd[1]; in SVGA3D_BufferDMA()
545 pSuffix = (SVGA3dCmdSurfaceDMASuffix *)((uint8_t*)cmd + sizeof *cmd + sizeof *box); in SVGA3D_BufferDMA()
590 SVGA3dCmdSetRenderTarget *cmd; in SVGA3D_SetRenderTarget() local
592 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetRenderTarget()
593 SVGA_3D_CMD_SETRENDERTARGET, sizeof *cmd, 1); in SVGA3D_SetRenderTarget()
594 if (!cmd) in SVGA3D_SetRenderTarget()
597 cmd->cid = swc->cid; in SVGA3D_SetRenderTarget()
598 cmd->type = type; in SVGA3D_SetRenderTarget()
599 surface_to_surfaceid(swc, surface, &cmd->target, SVGA_RELOC_WRITE); in SVGA3D_SetRenderTarget()
641 SVGA3dCmdDefineShader *cmd; in SVGA3D_DefineShader() local
645 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DefineShader()
646 SVGA_3D_CMD_SHADER_DEFINE, sizeof *cmd + bytecodeLen, in SVGA3D_DefineShader()
648 if (!cmd) in SVGA3D_DefineShader()
651 cmd->cid = swc->cid; in SVGA3D_DefineShader()
652 cmd->shid = shid; in SVGA3D_DefineShader()
653 cmd->type = type; in SVGA3D_DefineShader()
654 memcpy(&cmd[1], bytecode, bytecodeLen); in SVGA3D_DefineShader()
685 SVGA3dCmdDestroyShader *cmd; in SVGA3D_DestroyShader() local
687 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_DestroyShader()
688 SVGA_3D_CMD_SHADER_DESTROY, sizeof *cmd, in SVGA3D_DestroyShader()
690 if (!cmd) in SVGA3D_DestroyShader()
693 cmd->cid = swc->cid; in SVGA3D_DestroyShader()
694 cmd->shid = shid; in SVGA3D_DestroyShader()
695 cmd->type = type; in SVGA3D_DestroyShader()
732 SVGA3dCmdSetShaderConst *cmd; in SVGA3D_SetShaderConst() local
734 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShaderConst()
735 SVGA_3D_CMD_SET_SHADER_CONST, sizeof *cmd, in SVGA3D_SetShaderConst()
737 if (!cmd) in SVGA3D_SetShaderConst()
740 cmd->cid = swc->cid; in SVGA3D_SetShaderConst()
741 cmd->reg = reg; in SVGA3D_SetShaderConst()
742 cmd->type = type; in SVGA3D_SetShaderConst()
743 cmd->ctype = ctype; in SVGA3D_SetShaderConst()
749 memcpy(&cmd->values, value, sizeof cmd->values); in SVGA3D_SetShaderConst()
753 memset(&cmd->values, 0, sizeof cmd->values); in SVGA3D_SetShaderConst()
754 cmd->values[0] = *(uint32*)value; in SVGA3D_SetShaderConst()
799 SVGA3dCmdSetShaderConst *cmd; in SVGA3D_SetShaderConsts() local
801 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShaderConsts()
803 sizeof *cmd + (numRegs - 1) * sizeof cmd->values, in SVGA3D_SetShaderConsts()
805 if (!cmd) in SVGA3D_SetShaderConsts()
808 cmd->cid = swc->cid; in SVGA3D_SetShaderConsts()
809 cmd->reg = reg; in SVGA3D_SetShaderConsts()
810 cmd->type = type; in SVGA3D_SetShaderConsts()
811 cmd->ctype = ctype; in SVGA3D_SetShaderConsts()
813 memcpy(&cmd->values, values, numRegs * sizeof cmd->values); in SVGA3D_SetShaderConsts()
849 SVGA3dCmdSetShader *cmd; in SVGA3D_SetShader() local
853 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetShader()
854 SVGA_3D_CMD_SET_SHADER, sizeof *cmd, in SVGA3D_SetShader()
856 if (!cmd) in SVGA3D_SetShader()
859 cmd->cid = swc->cid; in SVGA3D_SetShader()
860 cmd->type = type; in SVGA3D_SetShader()
861 cmd->shid = shid; in SVGA3D_SetShader()
902 SVGA3dCmdClear *cmd; in SVGA3D_BeginClear() local
904 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginClear()
906 sizeof *cmd + sizeof **rects * numRects, in SVGA3D_BeginClear()
908 if (!cmd) in SVGA3D_BeginClear()
911 cmd->cid = swc->cid; in SVGA3D_BeginClear()
912 cmd->clearFlag = flags; in SVGA3D_BeginClear()
913 cmd->color = color; in SVGA3D_BeginClear()
914 cmd->depth = depth; in SVGA3D_BeginClear()
915 cmd->stencil = stencil; in SVGA3D_BeginClear()
916 *rects = (SVGA3dRect*) &cmd[1]; in SVGA3D_BeginClear()
999 SVGA3dCmdDrawPrimitives *cmd; in SVGA3D_BeginDrawPrimitives() local
1005 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginDrawPrimitives()
1007 sizeof *cmd + declSize + rangeSize, in SVGA3D_BeginDrawPrimitives()
1009 if (!cmd) in SVGA3D_BeginDrawPrimitives()
1012 cmd->cid = swc->cid; in SVGA3D_BeginDrawPrimitives()
1013 cmd->numVertexDecls = numVertexDecls; in SVGA3D_BeginDrawPrimitives()
1014 cmd->numRanges = numRanges; in SVGA3D_BeginDrawPrimitives()
1016 declArray = (SVGA3dVertexDecl*) &cmd[1]; in SVGA3D_BeginDrawPrimitives()
1060 SVGA3dCmdSurfaceCopy *cmd; in SVGA3D_BeginSurfaceCopy() local
1063 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSurfaceCopy()
1064 SVGA_3D_CMD_SURFACE_COPY, sizeof *cmd + boxesSize, in SVGA3D_BeginSurfaceCopy()
1066 if (!cmd) in SVGA3D_BeginSurfaceCopy()
1069 surface_to_surfaceid(swc, src, &cmd->src, SVGA_RELOC_READ); in SVGA3D_BeginSurfaceCopy()
1070 surface_to_surfaceid(swc, dest, &cmd->dest, SVGA_RELOC_WRITE); in SVGA3D_BeginSurfaceCopy()
1071 *boxes = (SVGA3dCopyBox*) &cmd[1]; in SVGA3D_BeginSurfaceCopy()
1104 SVGA3dCmdSurfaceStretchBlt *cmd; in SVGA3D_SurfaceStretchBlt() local
1106 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SurfaceStretchBlt()
1107 SVGA_3D_CMD_SURFACE_STRETCHBLT, sizeof *cmd, in SVGA3D_SurfaceStretchBlt()
1109 if (!cmd) in SVGA3D_SurfaceStretchBlt()
1112 surface_to_surfaceid(swc, src, &cmd->src, SVGA_RELOC_READ); in SVGA3D_SurfaceStretchBlt()
1113 surface_to_surfaceid(swc, dest, &cmd->dest, SVGA_RELOC_WRITE); in SVGA3D_SurfaceStretchBlt()
1114 cmd->boxSrc = *boxSrc; in SVGA3D_SurfaceStretchBlt()
1115 cmd->boxDest = *boxDest; in SVGA3D_SurfaceStretchBlt()
1116 cmd->mode = mode; in SVGA3D_SurfaceStretchBlt()
1145 SVGA3dCmdSetViewport *cmd; in SVGA3D_SetViewport() local
1147 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetViewport()
1148 SVGA_3D_CMD_SETVIEWPORT, sizeof *cmd, in SVGA3D_SetViewport()
1150 if (!cmd) in SVGA3D_SetViewport()
1153 cmd->cid = swc->cid; in SVGA3D_SetViewport()
1154 cmd->rect = *rect; in SVGA3D_SetViewport()
1184 SVGA3dCmdSetScissorRect *cmd; in SVGA3D_SetScissorRect() local
1186 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetScissorRect()
1187 SVGA_3D_CMD_SETSCISSORRECT, sizeof *cmd, in SVGA3D_SetScissorRect()
1189 if (!cmd) in SVGA3D_SetScissorRect()
1192 cmd->cid = swc->cid; in SVGA3D_SetScissorRect()
1193 cmd->rect = *rect; in SVGA3D_SetScissorRect()
1221 SVGA3dCmdSetClipPlane *cmd; in SVGA3D_SetClipPlane() local
1223 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetClipPlane()
1224 SVGA_3D_CMD_SETCLIPPLANE, sizeof *cmd, in SVGA3D_SetClipPlane()
1226 if (!cmd) in SVGA3D_SetClipPlane()
1229 cmd->cid = swc->cid; in SVGA3D_SetClipPlane()
1230 cmd->index = index; in SVGA3D_SetClipPlane()
1231 cmd->plane[0] = plane[0]; in SVGA3D_SetClipPlane()
1232 cmd->plane[1] = plane[1]; in SVGA3D_SetClipPlane()
1233 cmd->plane[2] = plane[2]; in SVGA3D_SetClipPlane()
1234 cmd->plane[3] = plane[3]; in SVGA3D_SetClipPlane()
1262 SVGA3dCmdSetZRange *cmd; in SVGA3D_SetZRange() local
1264 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetZRange()
1265 SVGA_3D_CMD_SETZRANGE, sizeof *cmd, in SVGA3D_SetZRange()
1267 if (!cmd) in SVGA3D_SetZRange()
1270 cmd->cid = swc->cid; in SVGA3D_SetZRange()
1271 cmd->zRange.min = zMin; in SVGA3D_SetZRange()
1272 cmd->zRange.max = zMax; in SVGA3D_SetZRange()
1309 SVGA3dCmdSetTextureState *cmd; in SVGA3D_BeginSetTextureState() local
1311 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSetTextureState()
1313 sizeof *cmd + sizeof **states * numStates, in SVGA3D_BeginSetTextureState()
1315 if (!cmd) in SVGA3D_BeginSetTextureState()
1318 cmd->cid = swc->cid; in SVGA3D_BeginSetTextureState()
1319 *states = (SVGA3dTextureState*) &cmd[1]; in SVGA3D_BeginSetTextureState()
1355 SVGA3dCmdSetRenderState *cmd; in SVGA3D_BeginSetRenderState() local
1357 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginSetRenderState()
1359 sizeof *cmd + sizeof **states * numStates, in SVGA3D_BeginSetRenderState()
1361 if (!cmd) in SVGA3D_BeginSetRenderState()
1364 cmd->cid = swc->cid; in SVGA3D_BeginSetRenderState()
1365 *states = (SVGA3dRenderState*) &cmd[1]; in SVGA3D_BeginSetRenderState()
1391 SVGA3dCmdBeginGBQuery *cmd; in SVGA3D_BeginGBQuery() local
1393 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginGBQuery()
1395 sizeof *cmd, in SVGA3D_BeginGBQuery()
1397 if (!cmd) in SVGA3D_BeginGBQuery()
1400 cmd->cid = swc->cid; in SVGA3D_BeginGBQuery()
1401 cmd->type = type; in SVGA3D_BeginGBQuery()
1429 SVGA3dCmdBeginQuery *cmd; in SVGA3D_BeginQuery() local
1434 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_BeginQuery()
1436 sizeof *cmd, in SVGA3D_BeginQuery()
1438 if (!cmd) in SVGA3D_BeginQuery()
1441 cmd->cid = swc->cid; in SVGA3D_BeginQuery()
1442 cmd->type = type; in SVGA3D_BeginQuery()
1471 SVGA3dCmdEndGBQuery *cmd; in SVGA3D_EndGBQuery() local
1473 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_EndGBQuery()
1475 sizeof *cmd, in SVGA3D_EndGBQuery()
1477 if (!cmd) in SVGA3D_EndGBQuery()
1480 cmd->cid = swc->cid; in SVGA3D_EndGBQuery()
1481 cmd->type = type; in SVGA3D_EndGBQuery()
1483 swc->mob_relocation(swc, &cmd->mobid, &cmd->offset, buffer, in SVGA3D_EndGBQuery()
1513 SVGA3dCmdEndQuery *cmd; in SVGA3D_EndQuery() local
1518 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_EndQuery()
1520 sizeof *cmd, in SVGA3D_EndQuery()
1522 if (!cmd) in SVGA3D_EndQuery()
1525 cmd->cid = swc->cid; in SVGA3D_EndQuery()
1526 cmd->type = type; in SVGA3D_EndQuery()
1528 swc->region_relocation(swc, &cmd->guestResult, buffer, 0, in SVGA3D_EndQuery()
1558 SVGA3dCmdWaitForGBQuery *cmd; in SVGA3D_WaitForGBQuery() local
1560 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_WaitForGBQuery()
1562 sizeof *cmd, in SVGA3D_WaitForGBQuery()
1564 if (!cmd) in SVGA3D_WaitForGBQuery()
1567 cmd->cid = swc->cid; in SVGA3D_WaitForGBQuery()
1568 cmd->type = type; in SVGA3D_WaitForGBQuery()
1570 swc->mob_relocation(swc, &cmd->mobid, &cmd->offset, buffer, in SVGA3D_WaitForGBQuery()
1605 SVGA3dCmdWaitForQuery *cmd; in SVGA3D_WaitForQuery() local
1610 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_WaitForQuery()
1612 sizeof *cmd, in SVGA3D_WaitForQuery()
1614 if (!cmd) in SVGA3D_WaitForQuery()
1617 cmd->cid = swc->cid; in SVGA3D_WaitForQuery()
1618 cmd->type = type; in SVGA3D_WaitForQuery()
1620 swc->region_relocation(swc, &cmd->guestResult, buffer, 0, in SVGA3D_WaitForQuery()
1633 SVGA3dCmdBindGBShader *cmd = in SVGA3D_BindGBShader() local
1636 sizeof *cmd, in SVGA3D_BindGBShader()
1639 if (!cmd) in SVGA3D_BindGBShader()
1642 swc->shader_relocation(swc, &cmd->shid, &cmd->mobid, in SVGA3D_BindGBShader()
1643 &cmd->offsetInBytes, gbshader, 0); in SVGA3D_BindGBShader()
1656 SVGA3dCmdSetShader *cmd; in SVGA3D_SetGBShader() local
1660 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetGBShader()
1662 sizeof *cmd, in SVGA3D_SetGBShader()
1664 if (!cmd) in SVGA3D_SetGBShader()
1667 cmd->cid = swc->cid; in SVGA3D_SetGBShader()
1668 cmd->type = type; in SVGA3D_SetGBShader()
1670 swc->shader_relocation(swc, &cmd->shid, NULL, NULL, gbshader, 0); in SVGA3D_SetGBShader()
1672 cmd->shid = SVGA_ID_INVALID; in SVGA3D_SetGBShader()
1686 SVGA3dCmdBindGBSurface *cmd = in SVGA3D_BindGBSurface() local
1689 sizeof *cmd, in SVGA3D_BindGBSurface()
1692 if (!cmd) in SVGA3D_BindGBSurface()
1695 swc->surface_relocation(swc, &cmd->sid, &cmd->mobid, surface, in SVGA3D_BindGBSurface()
1715 SVGA3dCmdUpdateGBImage *cmd = in SVGA3D_UpdateGBImage() local
1718 sizeof *cmd, in SVGA3D_UpdateGBImage()
1721 if (!cmd) in SVGA3D_UpdateGBImage()
1724 swc->surface_relocation(swc, &cmd->image.sid, NULL, surface, in SVGA3D_UpdateGBImage()
1726 cmd->image.face = face; in SVGA3D_UpdateGBImage()
1727 cmd->image.mipmap = mipLevel; in SVGA3D_UpdateGBImage()
1728 cmd->box = *box; in SVGA3D_UpdateGBImage()
1745 SVGA3dCmdUpdateGBSurface *cmd = in SVGA3D_UpdateGBSurface() local
1748 sizeof *cmd, in SVGA3D_UpdateGBSurface()
1751 if (!cmd) in SVGA3D_UpdateGBSurface()
1754 swc->surface_relocation(swc, &cmd->sid, NULL, surface, in SVGA3D_UpdateGBSurface()
1773 SVGA3dCmdReadbackGBImage *cmd = in SVGA3D_ReadbackGBImage() local
1776 sizeof *cmd, in SVGA3D_ReadbackGBImage()
1779 if (!cmd) in SVGA3D_ReadbackGBImage()
1782 swc->surface_relocation(swc, &cmd->image.sid, NULL, surface, in SVGA3D_ReadbackGBImage()
1784 cmd->image.face = face; in SVGA3D_ReadbackGBImage()
1785 cmd->image.mipmap = mipLevel; in SVGA3D_ReadbackGBImage()
1802 SVGA3dCmdReadbackGBSurface *cmd = in SVGA3D_ReadbackGBSurface() local
1805 sizeof *cmd, in SVGA3D_ReadbackGBSurface()
1808 if (!cmd) in SVGA3D_ReadbackGBSurface()
1811 swc->surface_relocation(swc, &cmd->sid, NULL, surface, in SVGA3D_ReadbackGBSurface()
1828 SVGA3dCmdReadbackGBImagePartial *cmd = in SVGA3D_ReadbackGBImagePartial() local
1831 sizeof *cmd, in SVGA3D_ReadbackGBImagePartial()
1833 if (!cmd) in SVGA3D_ReadbackGBImagePartial()
1836 swc->surface_relocation(swc, &cmd->image.sid, NULL, surface, in SVGA3D_ReadbackGBImagePartial()
1838 cmd->image.face = face; in SVGA3D_ReadbackGBImagePartial()
1839 cmd->image.mipmap = mipLevel; in SVGA3D_ReadbackGBImagePartial()
1840 cmd->box = *box; in SVGA3D_ReadbackGBImagePartial()
1841 cmd->invertBox = invertBox; in SVGA3D_ReadbackGBImagePartial()
1857 SVGA3dCmdInvalidateGBImagePartial *cmd = in SVGA3D_InvalidateGBImagePartial() local
1860 sizeof *cmd, in SVGA3D_InvalidateGBImagePartial()
1862 if (!cmd) in SVGA3D_InvalidateGBImagePartial()
1865 swc->surface_relocation(swc, &cmd->image.sid, NULL, surface, in SVGA3D_InvalidateGBImagePartial()
1867 cmd->image.face = face; in SVGA3D_InvalidateGBImagePartial()
1868 cmd->image.mipmap = mipLevel; in SVGA3D_InvalidateGBImagePartial()
1869 cmd->box = *box; in SVGA3D_InvalidateGBImagePartial()
1870 cmd->invertBox = invertBox; in SVGA3D_InvalidateGBImagePartial()
1881 SVGA3dCmdInvalidateGBSurface *cmd = in SVGA3D_InvalidateGBSurface() local
1884 sizeof *cmd, in SVGA3D_InvalidateGBSurface()
1886 if (!cmd) in SVGA3D_InvalidateGBSurface()
1889 swc->surface_relocation(swc, &cmd->sid, NULL, surface, in SVGA3D_InvalidateGBSurface()
1904 SVGA3dCmdSetGBShaderConstInline *cmd; in SVGA3D_SetGBShaderConstsInline() local
1908 cmd = SVGA3D_FIFOReserve(swc, in SVGA3D_SetGBShaderConstsInline()
1910 sizeof *cmd + numRegs * sizeof(float[4]), in SVGA3D_SetGBShaderConstsInline()
1912 if (!cmd) in SVGA3D_SetGBShaderConstsInline()
1915 cmd->cid = swc->cid; in SVGA3D_SetGBShaderConstsInline()
1916 cmd->regStart = regStart; in SVGA3D_SetGBShaderConstsInline()
1917 cmd->shaderType = shaderType; in SVGA3D_SetGBShaderConstsInline()
1918 cmd->constType = constType; in SVGA3D_SetGBShaderConstsInline()
1920 memcpy(&cmd[1], values, numRegs * sizeof(float[4])); in SVGA3D_SetGBShaderConstsInline()