Lines Matching full:opcode
105 struct gl_list_instruction Opcode[MAX_DLIST_EXT_OPCODES];
493 } OpCode;
510 OpCode opcode;
522 void *next; /* If prev node's opcode==OPCODE_CONTINUE */
577 dlist->Head[0].opcode = OPCODE_END_OF_LIST;
593 /** Is the given opcode an extension code? */
595 is_ext_opcode(OpCode opcode)
597 return (opcode >= OPCODE_EXT_0);
601 /** Destroy an extended opcode instruction */
605 const GLint i = node[0].opcode - OPCODE_EXT_0;
607 ctx->ListExt->Opcode[i].Destroy(ctx, &node[1]);
608 step = ctx->ListExt->Opcode[i].Size;
613 /** Execute an extended opcode instruction */
617 const GLint i = node[0].opcode - OPCODE_EXT_0;
619 ctx->ListExt->Opcode[i].Execute(ctx, &node[1]);
620 step = ctx->ListExt->Opcode[i].Size;
625 /** Print an extended opcode instruction */
629 const GLint i = node[0].opcode - OPCODE_EXT_0;
631 ctx->ListExt->Opcode[i].Print(ctx, &node[1]);
632 step = ctx->ListExt->Opcode[i].Size;
651 const OpCode opcodeopcode;
654 if (is_ext_opcode(opcode)) {
658 switch (opcode) {
662 n += InstSize[n[0].opcode];
666 n += InstSize[n[0].opcode];
670 n += InstSize[n[0].opcode];
674 n += InstSize[n[0].opcode];
678 n += InstSize[n[0].opcode];
682 n += InstSize[n[0].opcode];
686 n += InstSize[n[0].opcode];
690 n += InstSize[n[0].opcode];
694 n += InstSize[n[0].opcode];
698 n += InstSize[n[0].opcode];
702 n += InstSize[n[0].opcode];
706 n += InstSize[n[0].opcode];
710 n += InstSize[n[0].opcode];
714 n += InstSize[n[0].opcode];
718 n += InstSize[n[0].opcode];
722 n += InstSize[n[0].opcode];
726 n += InstSize[n[0].opcode];
730 n += InstSize[n[0].opcode];
734 n += InstSize[n[0].opcode];
738 n += InstSize[n[0].opcode];
742 n += InstSize[n[0].opcode];
747 n += InstSize[n[0].opcode];
751 n += InstSize[n[0].opcode];
757 n += InstSize[n[0].opcode];
763 n += InstSize[n[0].opcode];
779 n += InstSize[n[0].opcode];
791 n += InstSize[n[0].opcode];
805 n += InstSize[n[0].opcode];
971 * Allocate space for a display list instruction (opcode + payload space).
972 * \param opcode the instruction opcode (OPCODE_* value)
973 * \param bytes instruction payload size (not counting opcode)
974 * \return pointer to allocated memory (the opcode space)
977 dlist_alloc(struct gl_context *ctx, OpCode opcode, GLuint bytes)
982 if (opcode < (GLuint) OPCODE_EXT_0) {
983 if (InstSize[opcode] == 0) {
985 InstSize[opcode] = numNodes;
989 ASSERT(numNodes == InstSize[opcode]);
997 n[0].opcode = OPCODE_CONTINUE;
1011 n[0].opcode = opcode;
1022 * \param opcode the instruction opcode (OPCODE_* value)
1023 * \param bytes instruction size in bytes, not counting opcode.
1025 * opcode).
1028 _mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint bytes)
1030 Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes);
1032 return n + 1; /* return pointer to payload area, after opcode */
1046 * \return the new opcode number or -1 if error
1057 ctx->ListExt->Opcode[i].Size =
1059 ctx->ListExt->Opcode[i].Execute = execute;
1060 ctx->ListExt->Opcode[i].Destroy = destroy;
1061 ctx->ListExt->Opcode[i].Print = print;
1070 * an array of Nodes where node[0] holds the opcode, node[1] is the first
1073 * \param opcode one of OPCODE_x
1078 alloc_instruction(struct gl_context *ctx, OpCode opcode, GLuint nparams)
1080 return dlist_alloc(ctx, opcode, nparams * sizeof(Node));
2901 save_LogicOp(GLenum opcode)
2908 n[1].e = opcode;
2911 CALL_LogicOp(ctx->Exec, (opcode));
7692 const OpCode opcode = n[0].opcode;
7694 if (is_ext_opcode(opcode)) {
7698 switch (opcode) {
8913 _mesa_snprintf(msg, sizeof(msg), "Error in execute_list: opcode=%d",
8914 (int) opcode);
8921 if (opcode != OPCODE_CONTINUE) {
8922 n += InstSize[opcode];
10703 const OpCode opcode = n[0].opcode;
10705 if (is_ext_opcode(opcode)) {
10709 switch (opcode) {
10920 if (opcode < 0 || opcode > OPCODE_END_OF_LIST) {
10922 ("ERROR IN DISPLAY LIST: opcode = %d, address = %p\n",
10923 opcode, (void *) n);
10927 printf("command %d, %u operands\n", opcode,
10928 InstSize[opcode]);
10932 if (opcode != OPCODE_CONTINUE) {
10933 n += InstSize[opcode];