Home | History | Annotate | Download | only in svga

Lines Matching refs:cmd

82 SVGA3dCmdDX##CommandName *cmd; \
84 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_##CommandCode, \
86 if (!cmd) \
91 SVGA3dCmdDX##CommandName *cmd; \
94 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_##CommandCode, \
97 if (!cmd) \
103 cmd->VariableName = VariableName; \
177 SVGA3dCmdDXPredCopyRegion *cmd =
182 if (!cmd)
185 swc->surface_relocation(swc, &cmd->dstSid, NULL, dstSurf, SVGA_RELOC_WRITE);
186 swc->surface_relocation(swc, &cmd->srcSid, NULL, srcSurf, SVGA_RELOC_READ);
187 cmd->dstSubResource = dstSubResource;
188 cmd->srcSubResource = srcSubResource;
189 cmd->box = *box;
202 SVGA3dCmdDXPredCopy *cmd =
207 if (!cmd)
210 swc->surface_relocation(swc, &cmd->dstSid, NULL, dstSurf, SVGA_RELOC_WRITE);
211 swc->surface_relocation(swc, &cmd->srcSid, NULL, srcSurf, SVGA_RELOC_READ);
225 memcpy(cmd + 1, viewports, count * sizeof(SVGA3dViewport));
238 SVGA3dCmdDXSetShader *cmd = SVGA3D_FIFOReserve(swc,
240 sizeof *cmd,
242 if (!cmd)
245 swc->shader_relocation(swc, &cmd->shaderId, NULL, NULL, gbshader, 0);
247 cmd->type = type;
248 cmd->shaderId = shaderId;
263 SVGA3dCmdDXSetShaderResources *cmd;
267 cmd = SVGA3D_FIFOReserve(swc,
272 if (!cmd)
276 cmd->type = type;
277 cmd->startView = startView;
279 cmd_ids = (SVGA3dShaderResourceViewId *) (cmd + 1);
301 memcpy(cmd + 1, samplerIds, count * sizeof(SVGA3dSamplerId));
313 SVGA3dCmdDXClearRenderTargetView *cmd;
316 cmd = SVGA3D_FIFOReserve(swc,
320 if (!cmd)
329 view_relocation(swc, color_surf, &cmd->renderTargetViewId,
331 cmd->renderTargetViewId = ss->view_id;
333 COPY_4V(cmd->rgba.value, rgba);
347 SVGA3dCmdDXSetRenderTargets *cmd;
354 cmd = SVGA3D_FIFOReserve(swc,
359 if (!cmd)
368 view_relocation(swc, depth_stencil_surf, &cmd->depthStencilViewId,
370 cmd->depthStencilViewId = ss->view_id;
374 view_relocation(swc, NULL, &cmd->depthStencilViewId,
376 cmd->depthStencilViewId = SVGA3D_INVALID_ID;
380 ctarget = (SVGA3dRenderTargetViewId *) &cmd[1];
407 memcpy(cmd->blendFactor, blendFactor, sizeof(float) * 4);
432 cmd->rasterizerId = rasterizerId;
443 SVGA3dCmdDXSetPredication *cmd;
445 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_SET_PREDICATION,
446 sizeof *cmd, 0);
448 if (!cmd)
451 cmd->queryId = queryId;
452 cmd->predicateValue = predicateValue;
463 SVGA3dCmdDXSetSOTargets *cmd;
467 cmd = SVGA3D_FIFOReserve(swc,
473 if (!cmd)
476 cmd->pad0 = 0;
477 sot = (SVGA3dSoTarget *)(cmd + 1);
501 SVGA3dCmdDXSetScissorRects *cmd;
504 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_SET_SCISSORRECTS,
508 if (!cmd)
511 memcpy(cmd + 1, rects, count * sizeof(SVGASignedRect));
523 cmd->soid = soid;
626 cmd->queryId = queryId;
637 SVGA3dCmdDXBindQuery *cmd = SVGA3D_FIFOReserve(swc,
639 sizeof *cmd,
641 if (!cmd)
644 cmd->queryId = queryId;
645 swc->query_relocation(swc, &cmd->mobid, gbQuery);
667 cmd->queryId = queryId;
677 cmd->queryId = queryId;
690 SVGA3dCmdDXClearDepthStencilView *cmd;
693 cmd = SVGA3D_FIFOReserve(swc,
697 if (!cmd)
705 view_relocation(swc, ds_surf, &cmd->depthStencilViewId,
707 cmd->depthStencilViewId = ss->view_id;
708 cmd->flags = flags;
709 cmd->stencil = stencil;
710 cmd->depth = depth;
724 SVGA3dCmdDXDefineShaderResourceView *cmd;
726 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_DEFINE_SHADERRESOURCE_VIEW,
729 if (!cmd)
734 swc->surface_relocation(swc, &cmd->sid, NULL, surface,
737 cmd->desc = *desc;
750 cmd->shaderResourceViewId = shaderResourceViewId;
765 SVGA3dCmdDXDefineRenderTargetView *cmd;
767 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_DEFINE_RENDERTARGET_VIEW,
770 if (!cmd)
774 cmd->desc = *desc;
777 &cmd->sid,
790 cmd->renderTargetViewId = renderTargetViewId;
805 SVGA3dCmdDXDefineDepthStencilView *cmd;
807 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_DEFINE_DEPTHSTENCIL_VIEW,
810 if (!cmd)
814 cmd->mipSlice = desc->tex.mipSlice;
815 cmd->firstArraySlice = desc->tex.firstArraySlice;
816 cmd->arraySize = desc->tex.arraySize;
819 &cmd->sid,
832 cmd->depthStencilViewId = depthStencilViewId;
844 SVGA3dCmdDXDefineElementLayout *cmd;
847 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_DEFINE_ELEMENTLAYOUT,
850 if (!cmd)
859 cmd->elementLayoutId = elementLayoutId;
860 memcpy(cmd + 1, elements, count * sizeof(SVGA3dInputElementDesc));
872 cmd->elementLayoutId = elementLayoutId;
887 cmd->blendId = blendId;
888 cmd->alphaToCoverageEnable = alphaToCoverageEnable;
889 cmd->independentBlendEnable = independentBlendEnable;
890 memcpy(cmd->perRT, perRT, sizeof(cmd->perRT));
891 cmd->pad0 = 0;
903 cmd->blendId = blendId;
952 cmd->depthStencilId = depthStencilId;
985 cmd->lineWidth = lineWidth;
986 cmd->lineStippleEnable = lineStippleEnable;
987 cmd->lineStippleFactor = lineStippleFactor;
988 cmd->lineStipplePattern = lineStipplePattern;
989 cmd->provokingVertexLast = provokingVertexLast;
1001 cmd->rasterizerId = rasterizerId;
1040 cmd->samplerId = samplerId;
1096 cmd->shaderId = shaderId;
1112 cmd->soid = soid;
1113 cmd->numOutputStreamEntries = numOutputStreamEntries;
1115 for (i = 0; i < ARRAY_SIZE(cmd->streamOutputStrideInBytes); i++)
1116 cmd->streamOutputStrideInBytes[i] = streamOutputStrideInBytes[i];
1118 memcpy(cmd->decl, decl,
1132 cmd->soid = soid;
1144 cmd->elementLayoutId = elementLayoutId;
1157 SVGA3dCmdDXSetVertexBuffers *cmd;
1163 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_SET_VERTEX_BUFFERS,
1167 if (!cmd)
1170 cmd->startBuffer = startBuffer;
1172 bufs = (SVGA3dVertexBuffer *) &cmd[1];
1192 cmd->topology = topology;
1204 SVGA3dCmdDXSetIndexBuffer *cmd;
1206 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_SET_INDEX_BUFFER,
1209 if (!cmd)
1212 swc->surface_relocation(swc, &cmd->sid, NULL, indexes, SVGA_RELOC_READ);
1227 SVGA3dCmdDXSetSingleConstantBuffer *cmd;
1235 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_SET_SINGLE_CONSTANT_BUFFER,
1238 if (!cmd)
1241 cmd->slot = slot;
1242 cmd->type = type;
1243 swc->surface_relocation(swc, &cmd->sid, NULL, surface, SVGA_RELOC_READ);
1244 cmd->offsetInBytes = offsetInBytes;
1245 cmd->sizeInBytes = sizeInBytes;
1258 SVGA3dCmdDXReadbackSubResource *cmd;
1260 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_READBACK_SUBRESOURCE,
1263 if (!cmd)
1266 swc->surface_relocation(swc, &cmd->sid, NULL, surface,
1268 cmd->subResource = subResource;
1280 SVGA3dCmdDXUpdateSubResource *cmd;
1282 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_UPDATE_SUBRESOURCE,
1285 if (!cmd)
1288 swc->surface_relocation(swc, &cmd->sid, NULL, surface,
1290 cmd->subResource = subResource;
1291 cmd->box = *box;
1302 SVGA3dCmdDXGenMips *cmd;
1304 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_GENMIPS,
1307 if (!cmd)
1310 swc->surface_relocation(swc, &cmd->shaderResourceViewId, NULL, view,
1312 cmd->shaderResourceViewId = shaderResourceViewId;
1325 SVGA3dCmdDXBufferCopy *cmd;
1327 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_BUFFER_COPY, sizeof *cmd, 2);
1329 if (!cmd)
1332 swc->surface_relocation(swc, &cmd->dest, NULL, dst, SVGA_RELOC_WRITE);
1333 swc->surface_relocation(swc, &cmd->src, NULL, src, SVGA_RELOC_READ);
1334 cmd->destX = dstx;
1335 cmd->srcX = srcx;
1336 cmd->width = width;
1351 SVGA3dCmdDXTransferFromBuffer *cmd;
1353 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_TRANSFER_FROM_BUFFER,
1356 if (!cmd)
1359 swc->surface_relocation(swc, &cmd->srcSid, NULL, src, SVGA_RELOC_READ);
1360 swc->surface_relocation(swc, &cmd->destSid, NULL, dst, SVGA_RELOC_WRITE);
1361 cmd->srcOffset = srcOffset;
1362 cmd->srcPitch = srcPitch;
1363 cmd->srcSlicePitch = srcSlicePitch;
1364 cmd->destSubResource = dstSubResource;
1365 cmd->destBox = *dstBox;