Home | History | Annotate | Download | only in svgadump

Lines Matching refs:cmd

58 dump_SVGA3dVertexDecl(const SVGA3dVertexDecl *cmd)
60 switch((*cmd).identity.type) {
116 _debug_printf("\t\t.identity.type = %i\n", (*cmd).identity.type);
119 switch((*cmd).identity.method) {
142 _debug_printf("\t\t.identity.method = %i\n", (*cmd).identity.method);
145 switch((*cmd).identity.usage) {
192 _debug_printf("\t\t.identity.usage = %i\n", (*cmd).identity.usage);
195 _debug_printf("\t\t.identity.usageIndex = %u\n", (*cmd).identity.usageIndex);
196 _debug_printf("\t\t.array.surfaceId = %u\n", (*cmd).array.surfaceId);
197 _debug_printf("\t\t.array.offset = %u\n", (*cmd).array.offset);
198 _debug_printf("\t\t.array.stride = %u\n", (*cmd).array.stride);
199 _debug_printf("\t\t.rangeHint.first = %u\n", (*cmd).rangeHint.first);
200 _debug_printf("\t\t.rangeHint.last = %u\n", (*cmd).rangeHint.last);
204 dump_SVGA3dTextureState(const SVGA3dTextureState *cmd)
206 _debug_printf("\t\t.stage = %u\n", (*cmd).stage);
207 switch((*cmd).name) {
302 _debug_printf("\t\t.name = %i\n", (*cmd).name);
305 _debug_printf("\t\t.value = %u\n", (*cmd).value);
306 _debug_printf("\t\t.floatValue = %f\n", (*cmd).floatValue);
310 dump_SVGA3dViewport(const SVGA3dViewport *cmd)
312 _debug_printf("\t\t.x = %f\n", (*cmd).x);
313 _debug_printf("\t\t.y = %f\n", (*cmd).y);
314 _debug_printf("\t\t.width = %f\n", (*cmd).width);
315 _debug_printf("\t\t.height = %f\n", (*cmd).height);
316 _debug_printf("\t\t.minDepth = %f\n", (*cmd).minDepth);
317 _debug_printf("\t\t.maxDepth = %f\n", (*cmd).maxDepth);
321 dump_SVGA3dSamplerId(const SVGA3dSamplerId *cmd)
323 _debug_printf("\t\t.id = %u\n", *cmd);
327 dump_SVGA3dSoTarget(const SVGA3dSoTarget *cmd)
329 _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
330 _debug_printf("\t\t.offset = %u\n", (*cmd).offset);
334 dump_SVGA3dInputElementDesc(const SVGA3dInputElementDesc *cmd)
336 _debug_printf("\t\t.inputSlot = %u\n", (*cmd).inputSlot);
337 _debug_printf("\t\t.alignedByteOffset = %u\n", (*cmd).alignedByteOffset);
338 _debug_printf("\t\t.format = %s\n", svga_format_name((*cmd).format));
339 _debug_printf("\t\t.inputSlotClass = %u\n", (*cmd).inputSlotClass);
340 _debug_printf("\t\t.instanceDataStepRate = %u\n", (*cmd).instanceDataStepRate);
341 _debug_printf("\t\t.inputRegister = %u\n", (*cmd).inputRegister);
345 dump_SVGA3dVertexBuffer(const SVGA3dVertexBuffer *cmd)
347 _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
348 _debug_printf("\t\t.stride = %u\n", (*cmd).stride);
349 _debug_printf("\t\t.offset = %u\n", (*cmd).offset);
353 dump_SVGA3dCopyBox(const SVGA3dCopyBox *cmd)
355 _debug_printf("\t\t.x = %u\n", (*cmd).x);
356 _debug_printf("\t\t.y = %u\n", (*cmd).y);
357 _debug_printf("\t\t.z = %u\n", (*cmd).z);
358 _debug_printf("\t\t.w = %u\n", (*cmd).w);
359 _debug_printf("\t\t.h = %u\n", (*cmd).h);
360 _debug_printf("\t\t.d = %u\n", (*cmd).d);
361 _debug_printf("\t\t.srcx = %u\n", (*cmd).srcx);
362 _debug_printf("\t\t.srcy = %u\n", (*cmd).srcy);
363 _debug_printf("\t\t.srcz = %u\n", (*cmd).srcz);
373 dump_SVGA3dCmdSetClipPlane(const SVGA3dCmdSetClipPlane *cmd)
375 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
376 _debug_printf("\t\t.index = %u\n", (*cmd).index);
377 _debug_printf("\t\t.plane[0] = %f\n", (*cmd).plane[0]);
378 _debug_printf("\t\t.plane[1] = %f\n", (*cmd).plane[1]);
379 _debug_printf("\t\t.plane[2] = %f\n", (*cmd).plane[2]);
380 _debug_printf("\t\t.plane[3] = %f\n", (*cmd).plane[3]);
384 dump_SVGA3dCmdWaitForQuery(const SVGA3dCmdWaitForQuery *cmd)
386 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
387 switch((*cmd).type) {
395 _debug_printf("\t\t.type = %i\n", (*cmd).type);
398 _debug_printf("\t\t.guestResult.gmrId = %u\n", (*cmd).guestResult.gmrId);
399 _debug_printf("\t\t.guestResult.offset = %u\n", (*cmd).guestResult.offset);
403 dump_SVGA3dCmdSetRenderTarget(const SVGA3dCmdSetRenderTarget *cmd)
405 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
406 switch((*cmd).type) {
414 _debug_printf("\t\t.type = SVGA3D_RT_COLOR%u\n", (*cmd).type - SVGA3D_RT_COLOR0);
417 _debug_printf("\t\t.target.sid = %u\n", (*cmd).target.sid);
418 _debug_printf("\t\t.target.face = %u\n", (*cmd).target.face);
419 _debug_printf("\t\t.target.mipmap = %u\n", (*cmd).target.mipmap);
423 dump_SVGA3dCmdSetTextureState(const SVGA3dCmdSetTextureState *cmd)
425 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
429 dump_SVGA3dCmdSurfaceCopy(const SVGA3dCmdSurfaceCopy *cmd)
431 _debug_printf("\t\t.src.sid = %u\n", (*cmd).src.sid);
432 _debug_printf("\t\t.src.face = %u\n", (*cmd).src.face);
433 _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap);
434 _debug_printf("\t\t.dest.sid = %u\n", (*cmd).dest.sid);
435 _debug_printf("\t\t.dest.face = %u\n", (*cmd).dest.face);
436 _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap);
440 dump_SVGA3dCmdSetMaterial(const SVGA3dCmdSetMaterial *cmd)
442 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
443 switch((*cmd).face) {
463 _debug_printf("\t\t.face = %i\n", (*cmd).face);
466 _debug_printf("\t\t.material.diffuse[0] = %f\n", (*cmd).material.diffuse[0]);
467 _debug_printf("\t\t.material.diffuse[1] = %f\n", (*cmd).material.diffuse[1]);
468 cmd).material.diffuse[2]);
469 _debug_printf("\t\t.material.diffuse[3] = %f\n", (*cmd).material.diffuse[3]);
470 _debug_printf("\t\t.material.ambient[0] = %f\n", (*cmd).material.ambient[0]);
471 _debug_printf("\t\t.material.ambient[1] = %f\n", (*cmd).material.ambient[1]);
472 _debug_printf("\t\t.material.ambient[2] = %f\n", (*cmd).material.ambient[2]);
473 _debug_printf("\t\t.material.ambient[3] = %f\n", (*cmd).material.ambient[3]);
474 _debug_printf("\t\t.material.specular[0] = %f\n", (*cmd).material.specular[0]);
475 _debug_printf("\t\t.material.specular[1] = %f\n", (*cmd).material.specular[1]);
476 _debug_printf("\t\t.material.specular[2] = %f\n", (*cmd).material.specular[2]);
477 _debug_printf("\t\t.material.specular[3] = %f\n", (*cmd).material.specular[3]);
478 _debug_printf("\t\t.material.emissive[0] = %f\n", (*cmd).material.emissive[0]);
479 _debug_printf("\t\t.material.emissive[1] = %f\n", (*cmd).material.emissive[1]);
480 _debug_printf("\t\t.material.emissive[2] = %f\n", (*cmd).material.emissive[2]);
481 _debug_printf("\t\t.material.emissive[3] = %f\n", (*cmd).material.emissive[3]);
482 _debug_printf("\t\t.material.shininess = %f\n", (*cmd).material.shininess);
486 dump_SVGA3dCmdSetLightData(const SVGA3dCmdSetLightData *cmd)
488 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
489 _debug_printf("\t\t.index = %u\n", (*cmd).index);
490 switch((*cmd).data.type) {
510 _debug_printf("\t\t.data.type = %i\n", (*cmd).data.type);
513 _debug_printf("\t\t.data.inWorldSpace = %u\n", (*cmd).data.inWorldSpace);
514 _debug_printf("\t\t.data.diffuse[0] = %f\n", (*cmd).data.diffuse[0]);
515 _debug_printf("\t\t.data.diffuse[1] = %f\n", (*cmd).data.diffuse[1]);
516 _debug_printf("\t\t.data.diffuse[2] = %f\n", (*cmd).data.diffuse[2]);
517 _debug_printf("\t\t.data.diffuse[3] = %f\n", (*cmd).data.diffuse[3]);
518 _debug_printf("\t\t.data.specular[0] = %f\n", (*cmd).data.specular[0]);
519 _debug_printf("\t\t.data.specular[1] = %f\n", (*cmd).data.specular[1]);
520 _debug_printf("\t\t.data.specular[2] = %f\n", (*cmd).data.specular[2]);
521 _debug_printf("\t\t.data.specular[3] = %f\n", (*cmd).data.specular[3]);
522 _debug_printf("\t\t.data.ambient[0] = %f\n", (*cmd).data.ambient[0]);
523 _debug_printf("\t\t.data.ambient[1] = %f\n", (*cmd).data.ambient[1]);
524 _debug_printf("\t\t.data.ambient[2] = %f\n", (*cmd).data.ambient[2]);
525 _debug_printf("\t\t.data.ambient[3] = %f\n", (*cmd).data.ambient[3]);
526 _debug_printf("\t\t.data.position[0] = %f\n", (*cmd).data.position[0]);
527 _debug_printf("\t\t.data.position[1] = %f\n", (*cmd).data.position[1]);
528 _debug_printf("\t\t.data.position[2] = %f\n", (*cmd).data.position[2]);
529 _debug_printf("\t\t.data.position[3] = %f\n", (*cmd).data.position[3]);
530 _debug_printf("\t\t.data.direction[0] = %f\n", (*cmd).data.direction[0]);
531 _debug_printf("\t\t.data.direction[1] = %f\n", (*cmd).data.direction[1]);
532 _debug_printf("\t\t.data.direction[2] = %f\n", (*cmd).data.direction[2]);
533 _debug_printf("\t\t.data.direction[3] = %f\n", (*cmd).data.direction[3]);
534 _debug_printf("\t\t.data.range = %f\n", (*cmd).data.range);
535 _debug_printf("\t\t.data.falloff = %f\n", (*cmd).data.falloff);
536 _debug_printf("\t\t.data.attenuation0 = %f\n", (*cmd).data.attenuation0);
537 _debug_printf("\t\t.data.attenuation1 = %f\n", (*cmd).data.attenuation1);
538 _debug_printf("\t\t.data.attenuation2 = %f\n", (*cmd).data.attenuation2);
539 _debug_printf("\t\t.data.theta = %f\n", (*cmd).data.theta);
540 _debug_printf("\t\t.data.phi = %f\n", (*cmd).data.phi);
544 dump_SVGA3dCmdSetViewport(const SVGA3dCmdSetViewport *cmd)
546 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
547 _debug_printf("\t\t.rect.x = %u\n", (*cmd).rect.x);
548 _debug_printf("\t\t.rect.y = %u\n", (*cmd).rect.y);
549 _debug_printf("\t\t.rect.w = %u\n", (*cmd).rect.w);
550 _debug_printf("\t\t.rect.h = %u\n", (*cmd).rect.h);
554 dump_SVGA3dCmdSetScissorRect(const SVGA3dCmdSetScissorRect *cmd)
556 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
557 _debug_printf("\t\t.rect.x = %u\n", (*cmd).rect.x);
558 _debug_printf("\t\t.rect.y = %u\n", (*cmd).rect.y);
559 _debug_printf("\t\t.rect.w = %u\n", (*cmd).rect.w);
560 _debug_printf("\t\t.rect.h = %u\n", (*cmd).rect.h);
564 dump_SVGA3dCopyRect(const SVGA3dCopyRect *cmd)
566 _debug_printf("\t\t.x = %u\n", (*cmd).x);
567 _debug_printf("\t\t.y = %u\n", (*cmd).y);
568 _debug_printf("\t\t.w = %u\n", (*cmd).w);
569 _debug_printf("\t\t.h = %u\n", (*cmd).h);
570 _debug_printf("\t\t.srcx = %u\n", (*cmd).srcx);
571 _debug_printf("\t\t.srcy = %u\n", (*cmd).srcy);
575 dump_SVGA3dCmdSetShader(const SVGA3dCmdSetShader *cmd)
577 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
578 _debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
579 _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
583 dump_SVGA3dCmdEndQuery(const SVGA3dCmdEndQuery *cmd)
585 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
586 switch((*cmd).type) {
594 _debug_printf("\t\t.type = %i\n", (*cmd).type);
597 _debug_printf("\t\t.guestResult.gmrId = %u\n", (*cmd).guestResult.gmrId);
598 _debug_printf("\t\t.guestResult.offset = %u\n", (*cmd).guestResult.offset);
602 dump_SVGA3dSize(const SVGA3dSize *cmd)
604 _debug_printf("\t\t.width = %u\n", (*cmd).width);
605 _debug_printf("\t\t.height = %u\n", (*cmd).height);
606 _debug_printf("\t\t.depth = %u\n", (*cmd).depth);
610 dump_SVGA3dCmdDestroySurface(const SVGA3dCmdDestroySurface *cmd)
612 _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
616 dump_SVGA3dCmdDefineContext(const SVGA3dCmdDefineContext *cmd)
618 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
622 dump_SVGA3dRect(const SVGA3dRect *cmd)
624 _debug_printf("\t\t.x = %u\n", (*cmd).x);
625 _debug_printf("\t\t.y = %u\n", (*cmd).y);
626 _debug_printf("\t\t.w = %u\n", (*cmd).w);
627 _debug_printf("\t\t.h = %u\n", (*cmd).h);
631 dump_SVGA3dCmdBeginQuery(const SVGA3dCmdBeginQuery *cmd)
633 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
634 switch((*cmd).type) {
642 _debug_printf("\t\t.type = %i\n", (*cmd).type);
648 dump_SVGA3dRenderState(const SVGA3dRenderState *cmd)
650 switch((*cmd).state) {
946 _debug_printf("\t\t.state = %i\n", (*cmd).state);
949 _debug_printf("\t\t.uintValue = %u\n", (*cmd).uintValue);
950 _debug_printf("\t\t.floatValue = %f\n", (*cmd).floatValue);
954 dump_SVGA3dVertexDivisor(const SVGA3dVertexDivisor *cmd)
956 _debug_printf("\t\t.value = %u\n", (*cmd).value);
957 _debug_printf("\t\t.count = %u\n", (*cmd).count);
958 _debug_printf("\t\t.indexedData = %u\n", (*cmd).indexedData);
959 _debug_printf("\t\t.instanceData = %u\n", (*cmd).instanceData);
963 dump_SVGA3dCmdDefineShader(const SVGA3dCmdDefineShader *cmd)
965 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
966 _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
967 switch((*cmd).type) {
975 _debug_printf("\t\t.type = %i\n", (*cmd).type);
1041 dump_SVGA3dCmdSetShaderConst(const SVGA3dCmdSetShaderConst *cmd, uint32 numConsts)
1043 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1044 _debug_printf("\t\t.reg = %u\n", (*cmd).reg);
1045 _debug_printf("\t\t.type = %s\n", shader_name((*cmd).type));
1046 dump_constants((*cmd).ctype, cmd->reg, numConsts, cmd->values);
1050 dump_SVGA3dCmdSetGBShaderConstInline(const SVGA3dCmdSetGBShaderConstInline *cmd, uint32 numConsts)
1052 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1053 _debug_printf("\t\t.reg = %u\n", (*cmd).regStart);
1054 _debug_printf("\t\t.type = %s\n", shader_name((*cmd).shaderType));
1055 dump_constants((*cmd).constType, cmd->regStart, numConsts, &cmd[1]);
1060 dump_SVGA3dCmdSetZRange(const SVGA3dCmdSetZRange *cmd)
1062 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1063 _debug_printf("\t\t.zRange.min = %f\n", (*cmd).zRange.min);
1064 _debug_printf("\t\t.zRange.max = %f\n", (*cmd).zRange.max);
1068 dump_SVGA3dCmdDrawPrimitives(const SVGA3dCmdDrawPrimitives *cmd)
1070 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1071 _debug_printf("\t\t.numVertexDecls = %u\n", (*cmd).numVertexDecls);
1072 _debug_printf("\t\t.numRanges = %u\n", (*cmd).numRanges);
1076 dump_SVGA3dCmdSetLightEnabled(const SVGA3dCmdSetLightEnabled *cmd)
1078 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1079 _debug_printf("\t\t.index = %u\n", (*cmd).index);
1080 _debug_printf("\t\t.enabled = %u\n", (*cmd).enabled);
1084 dump_SVGA3dPrimitiveRange(const SVGA3dPrimitiveRange *cmd)
1086 switch((*cmd).primType) {
1112 _debug_printf("\t\t.primType = %i\n", (*cmd).primType);
1115 _debug_printf("\t\t.primitiveCount = %u\n", (*cmd).primitiveCount);
1116 _debug_printf("\t\t.indexArray.surfaceId = %u\n", (*cmd).indexArray.surfaceId);
1117 _debug_printf("\t\t.indexArray.offset = %u\n", (*cmd).indexArray.offset);
1118 _debug_printf("\t\t.indexArray.stride = %u\n", (*cmd).indexArray.stride);
1119 _debug_printf("\t\t.indexWidth = %u\n", (*cmd).indexWidth);
1120 _debug_printf("\t\t.indexBias = %i\n", (*cmd).indexBias);
1124 dump_SVGA3dCmdPresent(const SVGA3dCmdPresent *cmd)
1126 _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
1130 dump_SVGA3dCmdSetRenderState(const SVGA3dCmdSetRenderState *cmd)
1132 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1136 dump_SVGA3dCmdSurfaceStretchBlt(const SVGA3dCmdSurfaceStretchBlt *cmd)
1138 _debug_printf("\t\t.src.sid = %u\n", (*cmd).src.sid);
1139 _debug_printf("\t\t.src.face = %u\n", (*cmd).src.face);
1140 _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap);
1141 _debug_printf("\t\t.dest.sid = %u\n", (*cmd).dest.sid);
1142 _debug_printf("\t\t.dest.face = %u\n", (*cmd).dest.face);
1143 _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap);
1144 _debug_printf("\t\t.boxSrc.x = %u\n", (*cmd).boxSrc.x);
1145 _debug_printf("\t\t.boxSrc.y = %u\n", (*cmd).boxSrc.y);
1146 _debug_printf("\t\t.boxSrc.z = %u\n", (*cmd).boxSrc.z);
1147 _debug_printf("\t\t.boxSrc.w = %u\n", (*cmd).boxSrc.w);
1148 _debug_printf("\t\t.boxSrc.h = %u\n", (*cmd).boxSrc.h);
1149 _debug_printf("\t\t.boxSrc.d = %u\n", (*cmd).boxSrc.d);
1150 _debug_printf("\t\t.boxDest.x = %u\n", (*cmd).boxDest.x);
1151 _debug_printf("\t\t.boxDest.y = %u\n", (*cmd).boxDest.y);
1152 _debug_printf("\t\t.boxDest.z = %u\n", (*cmd).boxDest.z);
1153 _debug_printf("\t\t.boxDest.w = %u\n", (*cmd).boxDest.w);
1154 _debug_printf("\t\t.boxDest.h = %u\n", (*cmd).boxDest.h);
1155 _debug_printf("\t\t.boxDest.d = %u\n", (*cmd).boxDest.d);
1156 switch((*cmd).mode) {
1167 _debug_printf("\t\t.mode = %i\n", (*cmd).mode);
1173 dump_SVGA3dCmdSurfaceDMA(const SVGA3dCmdSurfaceDMA *cmd)
1175 _debug_printf("\t\t.guest.ptr.gmrId = %u\n", (*cmd).guest.ptr.gmrId);
1176 _debug_printf("\t\t.guest.ptr.offset = %u\n", (*cmd).guest.ptr.offset);
1177 _debug_printf("\t\t.guest.pitch = %u\n", (*cmd).guest.pitch);
1178 _debug_printf("\t\t.host.sid = %u\n", (*cmd).host.sid);
1179 _debug_printf("\t\t.host.face = %u\n", (*cmd).host.face);
1180 _debug_printf("\t\t.host.mipmap = %u\n", (*cmd).host.mipmap);
1181 switch((*cmd).transfer) {
1189 _debug_printf("\t\t.transfer = %i\n", (*cmd).transfer);
1195 dump_SVGA3dCmdSurfaceDMASuffix(const SVGA3dCmdSurfaceDMASuffix *cmd)
1197 _debug_printf("\t\t.suffixSize = %u\n", (*cmd).suffixSize);
1198 _debug_printf("\t\t.maximumOffset = %u\n", (*cmd).maximumOffset);
1199 _debug_printf("\t\t.flags.discard = %u\n", (*cmd).flags.discard);
1200 _debug_printf("\t\t.flags.unsynchronized = %u\n", (*cmd).flags.unsynchronized);
1204 dump_SVGA3dCmdSetTransform(const SVGA3dCmdSetTransform *cmd)
1206 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1207 switch((*cmd).type) {
1257 _debug_printf("\t\t.type = %i\n", (*cmd).type);
1260 _debug_printf("\t\t.matrix[0] = %f\n", (*cmd).matrix[0]);
1261 _debug_printf("\t\t.matrix[1] = %f\n", (*cmd).matrix[1]);
1262 _debug_printf("\t\t.matrix[2] = %f\n", (*cmd).matrix[2]);
1263 _debug_printf("\t\t.matrix[3] = %f\n", (*cmd).matrix[3]);
1264 _debug_printf("\t\t.matrix[4] = %f\n", (*cmd).matrix[4]);
1265 _debug_printf("\t\t.matrix[5] = %f\n", (*cmd).matrix[5]);
1266 _debug_printf("\t\t.matrix[6] = %f\n", (*cmd).matrix[6]);
1267 _debug_printf("\t\t.matrix[7] = %f\n", (*cmd).matrix[7]);
1268 _debug_printf("\t\t.matrix[8] = %f\n", (*cmd).matrix[8]);
1269 _debug_printf("\t\t.matrix[9] = %f\n", (*cmd).matrix[9]);
1270 _debug_printf("\t\t.matrix[10] = %f\n", (*cmd).matrix[10]);
1271 _debug_printf("\t\t.matrix[11] = %f\n", (*cmd).matrix[11]);
1272 _debug_printf("\t\t.matrix[12] = %f\n", (*cmd).matrix[12]);
1273 _debug_printf("\t\t.matrix[13] = %f\n", (*cmd).matrix[13]);
1274 _debug_printf("\t\t.matrix[14] = %f\n", (*cmd).matrix[14]);
1275 _debug_printf("\t\t.matrix[15] = %f\n", (*cmd).matrix[15]);
1279 dump_SVGA3dCmdDestroyShader(const SVGA3dCmdDestroyShader *cmd)
1281 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1282 _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
1283 switch((*cmd).type) {
1291 _debug_printf("\t\t.type = %i\n", (*cmd).type);
1297 dump_SVGA3dCmdDestroyContext(const SVGA3dCmdDestroyContext *cmd)
1299 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1303 dump_SVGA3dCmdClear(const SVGA3dCmdClear *cmd)
1305 _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
1306 switch((*cmd).clearFlag) {
1317 _debug_printf("\t\t.clearFlag = %i\n", (*cmd).clearFlag);
1320 _debug_printf("\t\t.color = %u\n", (*cmd).color);
1321 _debug_printf("\t\t.depth = %f\n", (*cmd).depth);
1322 _debug_printf("\t\t.stencil = %u\n", (*cmd).stencil);
1326 dump_SVGA3dCmdDefineSurface(const SVGA3dCmdDefineSurface *cmd)
1328 _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
1329 switch((*cmd).surfaceFlags) {
1346 _debug_printf("\t\t.surfaceFlags = %i\n", (*cmd).surfaceFlags);
1349 _debug_printf("\t\t.format = %s\n", svga_format_name((*cmd).format));
1350 _debug_printf("\t\t.face[0].numMipLevels = %u\n", (*cmd).face[0].numMipLevels);
1351 _debug_printf("\t\t.face[1].numMipLevels = %u\n", (*cmd).face[1].numMipLevels);
1352 _debug_printf("\t\t.face[2].numMipLevels = %u\n", (*cmd).face[2].numMipLevels);
1353 _debug_printf("\t\t.face[3].numMipLevels = %u\n", (*cmd).face[3].numMipLevels);
1354 _debug_printf("\t\t.face[4].numMipLevels = %u\n", (*cmd).face[4].numMipLevels);
1355 _debug_printf("\t\t.face[5].numMipLevels = %u\n", (*cmd).face[5].numMipLevels);
1359 dump_SVGASignedRect(const SVGASignedRect *cmd)
1361 _debug_printf("\t\t.left = %i\n", (*cmd).left);
1362 _debug_printf("\t\t.top = %i\n", (*cmd).top);
1363 cmd).right);
1364 _debug_printf("\t\t.bottom = %i\n", (*cmd).bottom);
1376 dump_SVGA3dCmdBlitSurfaceToScreen(const SVGA3dCmdBlitSurfaceToScreen *cmd)
1378 _debug_printf("\t\t.srcImage.sid = %u\n", (*cmd).srcImage.sid);
1379 _debug_printf("\t\t.srcImage.face = %u\n", (*cmd).srcImage.face);
1380 _debug_printf("\t\t.srcImage.mipmap = %u\n", (*cmd).srcImage.mipmap);
1381 _debug_printf("\t\t.srcRect.left = %i\n", (*cmd).srcRect.left);
1382 _debug_printf("\t\t.srcRect.top = %i\n", (*cmd).srcRect.top);
1383 _debug_printf("\t\t.srcRect.right = %i\n", (*cmd).srcRect.right);
1384 _debug_printf("\t\t.srcRect.bottom = %i\n", (*cmd).srcRect.bottom);
1385 _debug_printf("\t\t.destScreenId = %u\n", (*cmd).destScreenId);
1386 _debug_printf("\t\t.destRect.left = %i\n", (*cmd).destRect.left);
1387 _debug_printf("\t\t.destRect.top = %i\n", (*cmd).destRect.top);
1388 _debug_printf("\t\t.destRect.right = %i\n", (*cmd).destRect.right);
1389 _debug_printf("\t\t.destRect.bottom = %i\n", (*cmd).destRect.bottom);
1393 dump_SVGA3dCmdDefineGBContext(const SVGA3dCmdDefineGBContext *cmd)
1395 _debug_printf("\t\t.cid = %u\n", cmd->cid);
1399 dump_SVGA3dCmdBindGBContext(const SVGA3dCmdBindGBContext *cmd)
1401 _debug_printf("\t\t.cid = %u\n", cmd->cid);
1402 _debug_printf("\t\t.mobid = %u\n", cmd->mobid);
1403 _debug_printf("\t\t.validContents = %u\n", cmd->validContents);
1407 dump_SVGA3dCmdDestroyGBContext(const SVGA3dCmdDestroyGBContext *cmd)
1409 _debug_printf("\t\t.cid = %u\n", cmd->cid);
1413 dump_SVGA3dCmdDefineGBShader(const SVGA3dCmdDefineGBShader *cmd)
1415 _debug_printf("\t\t.shid = %u\n", cmd->shid);
1416 _debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
1417 _debug_printf("\t\t.sizeInBytes = %u\n", cmd->sizeInBytes);
1421 dump_SVGA3dCmdBindGBShader(const SVGA3dCmdBindGBShader *cmd)
1423 _debug_printf("\t\t.shid = %u\n", cmd->shid);
1424 _debug_printf("\t\t.mobid = %u\n", cmd->mobid);
1425 _debug_printf("\t\t.offsetInBytes = %u\n", cmd->offsetInBytes);
1429 dump_SVGA3dCmdDestroyGBShader(const SVGA3dCmdDestroyGBShader *cmd)
1431 _debug_printf("\t\t.shid = %u\n", cmd->shid);
1435 dump_SVGA3dCmdBindGBSurface(const SVGA3dCmdBindGBSurface *cmd)
1437 _debug_printf("\t\t.sid = %u\n", cmd->sid);
1438 _debug_printf("\t\t.mobid = %u\n", cmd->mobid);
1442 dump_SVGA3dCmdUpdateGBSurface(const SVGA3dCmdUpdateGBSurface *cmd)
1444 _debug_printf("\t\t.sid = %u\n", cmd->sid);
1448 dump_SVGA3dCmdUpdateGBImage(const SVGA3dCmdUpdateGBImage *cmd)
1450 _debug_printf("\t\t.image.sid = %u\n", cmd->image.sid);
1451 _debug_printf("\t\t.image.face = %u\n", cmd->image.face);
1452 _debug_printf("\t\t.image.mipmap = %u\n", cmd->image.mipmap);
1453 dump_SVGA3dBox(&cmd->box);
1457 dump_SVGA3dCmdReadbackGBImage(const SVGA3dCmdReadbackGBImage *cmd)
1459 _debug_printf("\t\t.image.sid = %u\n", cmd->image.sid);
1460 _debug_printf("\t\t.image.face = %u\n", cmd->image.face);
1461 _debug_printf("\t\t.image.mipmap = %u\n", cmd->image.mipmap);
1465 dump_SVGA3dCmdInvalidateGBImage(const SVGA3dCmdInvalidateGBImage *cmd)
1467 _debug_printf("\t\t.image.sid = %u\n", cmd->image.sid);
1468 _debug_printf("\t\t.image.face = %u\n", cmd->image.face);
1469 _debug_printf("\t\t.image.mipmap = %u\n", cmd->image.mipmap);
1473 dump_SVGA3dCmdInvalidateGBImagePartial(const SVGA3dCmdInvalidateGBImagePartial *cmd)
1475 _debug_printf("\t\t.image.sid = %u\n", cmd->image.sid);
1476 _debug_printf("\t\t.image.face = %u\n", cmd->image.face);
1477 _debug_printf("\t\t.image.mipmap = %u\n", cmd->image.mipmap);
1478 dump_SVGA3dBox(&cmd->box);
1479 _debug_printf("\t\t.invertBox = %u\n", cmd->invertBox);
1489 dump_SVGA3dCmdDX##CommandName(const SVGA3dCmdDX##CommandName *cmd)
1492 _debug_printf(SVGA3D_DUMP_STRINGIFY(\t\t.ParameterName = %ParameterType\n), cmd->ParameterName)
1501 _debug_printf(SVGA3D_DUMP_STRINGIFY(\t\t.TypeVariableName = %i\n), (*cmd).TypeVariableName); \
1507 debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
1513 debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
1554 _debug_printf("\t\t.blendFactor[4] = %f %f %f %f\n", cmd->blendFactor[0],
1555 cmd->blendFactor[1],
1556 cmd->blendFactor[2],
1557 cmd->blendFactor[3]);
1575 switch (cmd->type)
1581 switch (cmd->flags)
1683 _debug_printf("\t\t.format = %s\n", svga_format_name(cmd->format));
1684 switch (cmd->resourceDimension)
1694 if (cmd->resourceDimension == SVGA3D_RESOURCE_BUFFER) {
1709 debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
1722 _debug_printf("\t\t.format = %s\n", svga_format_name(cmd->format));
1723 switch (cmd->resourceDimension)
1752 _debug_printf("\t\t.format = %s\n", svga_format_name(cmd->format));
1753 switch (cmd->resourceDimension)
1784 dump_SVGA3dCmdDXDefineBlendState(const SVGA3dCmdDXDefineBlendState *cmd)
1792 const SVGA3dDXBlendStatePerRT *rt = cmd->perRT + i;
1892 cmd->type));
1916 i, cmd->streamOutputStrideInBytes[i]);
1920 _debug_printf("\t\t.decl[%d].outputSlot = %u\n", i, cmd->decl[i].outputSlot);
1921 _debug_printf("\t\t.decl[%d].registerIndex = %u\n", i, cmd->decl[i].registerIndex);
1922 _debug_printf("\t\t.decl[%d].registerMask = %u\n", i, cmd->decl[i].registerMask);
1940 debug_printf("\t\t.type = %s\n", shader_name(cmd->type));
1959 switch (cmd->topology)
1976 _debug_printf("\t\t.format = %s\n", svga_format_name(cmd->format));
1986 dump_SVGA3dCopyBox(&cmd->box);
1996 dump_SVGA3dCmdDXUpdateSubResource(const SVGA3dCmdDXUpdateSubResource *cmd)
2000 dump_SVGA3dBox(&cmd->box);
2004 dump_SVGA3dCmdDXReadbackSubResource(const SVGA3dCmdDXReadbackSubResource *cmd)
2041 dump_SVGA3dBox(&cmd->destBox);
2045 dump_SVGA3dCmdInvalidateGBSurface(const SVGA3dCmdInvalidateGBSurface *cmd)
2054 const SVGA3dCmdDX##CommandName *cmd = (const SVGA3dCmdDX##CommandName *)body; \
2055 dump_SVGA3dCmdDX##CommandName(cmd); \
2056 body = (const uint8_t *)&cmd[1]; \
2064 const SVGA3dCmdDX##CommandName *cmd = (const SVGA3dCmdDX##CommandName *)body; \
2065 dump_SVGA3dCmdDX##CommandName(cmd); \
2066 body = (const uint8_t *)&cmd[1]; \
2149 const SVGA3dCmdDXSetRenderTargets *cmd =
2152 cmd->depthStencilViewId);
2153 body = (const uint8_t *) &cmd[1];
2165 const SVGA3dCmdDefineSurface *cmd = (const SVGA3dCmdDefineSurface *)body;
2166 dump_SVGA3dCmdDefineSurface(cmd);
2167 body = (const uint8_t *)&cmd[1];
2177 const SVGA3dCmdDestroySurface *cmd = (const SVGA3dCmdDestroySurface *)body;
2178 dump_SVGA3dCmdDestroySurface(cmd);
2179 body = (const uint8_t *)&cmd[1];
2185 const SVGA3dCmdSurfaceCopy *cmd = (const SVGA3dCmdSurfaceCopy *)body;
2186 dump_SVGA3dCmdSurfaceCopy(cmd);
2187 body = (const uint8_t *)&cmd[1];
2197 const SVGA3dCmdSurfaceStretchBlt *cmd = (const SVGA3dCmdSurfaceStretchBlt *)body;
2198 dump_SVGA3dCmdSurfaceStretchBlt(cmd);
2199 body = (const uint8_t *)&cmd[1];
2205 const SVGA3dCmdSurfaceDMA *cmd = (const SVGA3dCmdSurfaceDMA *)body;
2206 dump_SVGA3dCmdSurfaceDMA(cmd);
2207 body = (const uint8_t *)&cmd[1];
2221 const SVGA3dCmdDefineContext *cmd = (const SVGA3dCmdDefineContext *)body;
2222 dump_SVGA3dCmdDefineContext(cmd);
2223 body = (const uint8_t *)&cmd[1];
2229 const SVGA3dCmdDestroyContext *cmd = (const SVGA3dCmdDestroyContext *)body;
2230 dump_SVGA3dCmdDestroyContext(cmd);
2231 body = (const uint8_t *)&cmd[1];
2237 const SVGA3dCmdSetTransform *cmd = (const SVGA3dCmdSetTransform *)body;
2238 dump_SVGA3dCmdSetTransform(cmd);
2239 body = (const uint8_t *)&cmd[1];
2245 const SVGA3dCmdSetZRange *cmd = (const SVGA3dCmdSetZRange *)body;
2246 dump_SVGA3dCmdSetZRange(cmd);
2247 body = (const uint8_t *)&cmd[1];
2253 const SVGA3dCmdSetRenderState *cmd = (const SVGA3dCmdSetRenderState *)body;
2254 dump_SVGA3dCmdSetRenderState(cmd);
2255 body = (const uint8_t *)&cmd[1];
2265 const SVGA3dCmdSetRenderTarget *cmd = (const SVGA3dCmdSetRenderTarget *)body;
2266 dump_SVGA3dCmdSetRenderTarget(cmd);
2267 body = (const uint8_t *)&cmd[1];
2273 const SVGA3dCmdSetTextureState *cmd = (const SVGA3dCmdSetTextureState *)body;
2274 dump_SVGA3dCmdSetTextureState(cmd);
2275 body = (const uint8_t *)&cmd[1];
2285 const SVGA3dCmdSetMaterial *cmd = (const SVGA3dCmdSetMaterial *)body;
2286 dump_SVGA3dCmdSetMaterial(cmd);
2287 body = (const uint8_t *)&cmd[1];
2293 const SVGA3dCmdSetLightData *cmd = (const SVGA3dCmdSetLightData *)body;
2294 dump_SVGA3dCmdSetLightData(cmd);
2295 body = (const uint8_t *)&cmd[1];
2301 const SVGA3dCmdSetLightEnabled *cmd = (const SVGA3dCmdSetLightEnabled *)body;
2302 dump_SVGA3dCmdSetLightEnabled(cmd);
2303 body = (const uint8_t *)&cmd[1];
2309 const SVGA3dCmdSetViewport *cmd = (const SVGA3dCmdSetViewport *)body;
2310 dump_SVGA3dCmdSetViewport(cmd);
2311 body = (const uint8_t *)&cmd[1];
2317 const SVGA3dCmdSetClipPlane *cmd = (const SVGA3dCmdSetClipPlane *)body;
2318 dump_SVGA3dCmdSetClipPlane(cmd);
2319 body = (const uint8_t *)&cmd[1];
2325 const SVGA3dCmdClear *cmd = (const SVGA3dCmdClear *)body;
2326 dump_SVGA3dCmdClear(cmd);
2327 body = (const uint8_t *)&cmd[1];
2337 cmd = (const SVGA3dCmdPresent *)body;
2338 dump_SVGA3dCmdPresent(cmd);
2339 body = (const uint8_t *)&cmd[1];
2349 const SVGA3dCmdDefineShader *cmd = (const SVGA3dCmdDefineShader *)body;
2350 dump_SVGA3dCmdDefineShader(cmd);
2351 body = (const uint8_t *)&cmd[1];
2361 const SVGA3dCmdDestroyShader *cmd = (const SVGA3dCmdDestroyShader *)body;
2362 dump_SVGA3dCmdDestroyShader(cmd);
2363 body = (const uint8_t *)&cmd[1];
2369 const SVGA3dCmdSetShader *cmd = (const SVGA3dCmdSetShader *)body;
2370 dump_SVGA3dCmdSetShader(cmd);
2371 body = (const uint8_t *)&cmd[1];
2377 const SVGA3dCmdSetShaderConst *cmd = (const SVGA3dCmdSetShaderConst *)body;
2378 uint32 numConsts = 1 + (size - sizeof *cmd) / (4 * sizeof(uint32));
2379 dump_SVGA3dCmdSetShaderConst(cmd, numConsts);
2386 const SVGA3dCmdDrawPrimitives *cmd = (const SVGA3dCmdDrawPrimitives *)body;
2388 dump_SVGA3dCmdDrawPrimitives(cmd);
2389 body = (const uint8_t *)&cmd[1];
2390 for(i = 0; i < cmd->numVertexDecls; ++i) {
2394 for(j = 0; j < cmd->numRanges; ++j) {
2407 const SVGA3dCmdSetScissorRect *cmd = (const SVGA3dCmdSetScissorRect *)body;
2408 dump_SVGA3dCmdSetScissorRect(cmd);
2409 body = (const uint8_t *)&cmd[1];
2415 const SVGA3dCmdBeginQuery *cmd = (const SVGA3dCmdBeginQuery *)body;
2416 dump_SVGA3dCmdBeginQuery(cmd);
2417 body = (const uint8_t *)&cmd[1];
2423 const SVGA3dCmdEndQuery *cmd = (const SVGA3dCmdEndQuery *)body;
2424 dump_SVGA3dCmdEndQuery(cmd);
2425 body = (const uint8_t *)&cmd[1];
2431 const SVGA3dCmdWaitForQuery *cmd = (const SVGA3dCmdWaitForQuery *)body;
2432 dump_SVGA3dCmdWaitForQuery(cmd);
2433 body = (const uint8_t *)&cmd[1];
2439 const SVGA3dCmdBlitSurfaceToScreen *cmd = (const SVGA3dCmdBlitSurfaceToScreen *)body;
2440 dump_SVGA3dCmdBlitSurfaceToScreen(cmd);
2441 body = (const uint8_t *)&cmd[1];
2451 const SVGA3dCmdDefineGBContext *cmd = (const SVGA3dCmdDefineGBContext *) body;
2452 dump_SVGA3dCmdDefineGBContext(cmd);
2453 body = (const uint8_t *)&cmd[1];
2459 const SVGA3dCmdBindGBContext *cmd = (const SVGA3dCmdBindGBContext *) body;
2460 dump_SVGA3dCmdBindGBContext(cmd);
2461 body = (const uint8_t *)&cmd[1];
2467 const SVGA3dCmdDestroyGBContext *cmd = (const SVGA3dCmdDestroyGBContext *) body;
2468 dump_SVGA3dCmdDestroyGBContext(cmd);
2469 body = (const uint8_t *)&cmd[1];
2475 const SVGA3dCmdDefineGBShader *cmd = (const SVGA3dCmdDefineGBShader *) body;
2476 dump_SVGA3dCmdDefineGBShader(cmd);
2477 body = (const uint8_t *)&cmd[1];
2483 const SVGA3dCmdBindGBShader *cmd = (const SVGA3dCmdBindGBShader *) body;
2484 dump_SVGA3dCmdBindGBShader(cmd);
2485 body = (const uint8_t *)&cmd[1];
2491 const SVGA3dCmdDestroyGBShader *cmd = (const SVGA3dCmdDestroyGBShader *) body;
2492 dump_SVGA3dCmdDestroyGBShader(cmd);
2493 body = (const uint8_t *)&cmd[1];
2499 const SVGA3dCmdBindGBSurface *cmd = (const SVGA3dCmdBindGBSurface *) body;
2500 dump_SVGA3dCmdBindGBSurface(cmd);
2501 body = (const uint8_t *)&cmd[1];
2507 const SVGA3dCmdUpdateGBSurface *cmd = (const SVGA3dCmdUpdateGBSurface *) body;
2508 dump_SVGA3dCmdUpdateGBSurface(cmd);
2509 body = (const uint8_t *)&cmd[1];
2515 const SVGA3dCmdReadbackGBImage *cmd = (SVGA3dCmdReadbackGBImage *) body;
2516 dump_SVGA3dCmdReadbackGBImage(cmd);
2517 body = (const uint8_t *)&cmd[1];
2523 const SVGA3dCmdUpdateGBImage *cmd = (const SVGA3dCmdUpdateGBImage *) body;
2524 dump_SVGA3dCmdUpdateGBImage(cmd);
2525 body = (const uint8_t *)&cmd[1];
2531 const SVGA3dCmdInvalidateGBImage *cmd = (const SVGA3dCmdInvalidateGBImage *) body;
2532 dump_SVGA3dCmdInvalidateGBImage(cmd);
2533 body = (const uint8_t *)&cmd[1];
2539 const SVGA3dCmdInvalidateGBImagePartial *cmd = (const SVGA3dCmdInvalidateGBImagePartial *) body;
2540 dump_SVGA3dCmdInvalidateGBImagePartial(cmd);
2541 body = (const uint8_t *)&cmd[1];
2548 const SVGA3dCmdSetGBShaderConstInline *cmd = (const SVGA3dCmdSetGBShaderConstInline *)body;
2549 uint32 numConsts = (size - sizeof *cmd) / (4 * sizeof(uint32));
2550 dump_SVGA3dCmdSetGBShaderConstInline(cmd, numConsts);
2557 const SVGA3dCmdInvalidateGBSurface *cmd = (const SVGA3dCmdInvalidateGBSurface *)body;
2558 dump_SVGA3dCmdInvalidateGBSurface(cmd);
2559 body = (const uint8_t *)&cmd[1];