Home | History | Annotate | Download | only in main

Lines Matching defs:Opcode

99    struct gl_list_instruction Opcode[MAX_DLIST_EXT_OPCODES];
496 } OpCode;
517 OpCode opcode;
620 if (n[0].opcode == OPCODE_BITMAP) {
622 if (n[0].opcode == OPCODE_END_OF_LIST)
636 return n[0].opcode == OPCODE_END_OF_LIST;
745 assert(n[0].opcode == OPCODE_BITMAP);
829 assert(n[0].opcode == OPCODE_BITMAP ||
830 n[0].opcode == OPCODE_END_OF_LIST);
832 if (n[0].opcode == OPCODE_BITMAP) {
878 dlist->Head[0].opcode = OPCODE_END_OF_LIST;
894 /** Is the given opcode an extension code? */
896 is_ext_opcode(OpCode opcode)
898 return (opcode >= OPCODE_EXT_0);
902 /** Destroy an extended opcode instruction */
906 const GLint i = node[0].opcode - OPCODE_EXT_0;
908 ctx->ListExt->Opcode[i].Destroy(ctx, &node[1]);
909 step = ctx->ListExt->Opcode[i].Size;
914 /** Execute an extended opcode instruction */
918 const GLint i = node[0].opcode - OPCODE_EXT_0;
920 ctx->ListExt->Opcode[i].Execute(ctx, &node[1]);
921 step = ctx->ListExt->Opcode[i].Size;
926 /** Print an extended opcode instruction */
930 const GLint i = node[0].opcode - OPCODE_EXT_0;
932 ctx->ListExt->Opcode[i].Print(ctx, &node[1], f);
933 step = ctx->ListExt->Opcode[i].Size;
952 const OpCode opcode = n[0].opcode;
955 if (is_ext_opcode(opcode)) {
959 switch (opcode) {
963 n += InstSize[n[0].opcode];
967 n += InstSize[n[0].opcode];
971 n += InstSize[n[0].opcode];
975 n += InstSize[n[0].opcode];
979 n += InstSize[n[0].opcode];
983 n += InstSize[n[0].opcode];
987 n += InstSize[n[0].opcode];
991 n += InstSize[n[0].opcode];
995 n += InstSize[n[0].opcode];
999 n += InstSize[n[0].opcode];
1003 n += InstSize[n[0].opcode];
1007 n += InstSize[n[0].opcode];
1011 n += InstSize[n[0].opcode];
1015 n += InstSize[n[0].opcode];
1019 n += InstSize[n[0].opcode];
1023 n += InstSize[n[0].opcode];
1027 n += InstSize[n[0].opcode];
1031 n += InstSize[n[0].opcode];
1035 n += InstSize[n[0].opcode];
1050 n += InstSize[n[0].opcode];
1062 n += InstSize[n[0].opcode];
1077 n += InstSize[n[0].opcode];
1089 n += InstSize[n[0].opcode];
1093 n += InstSize[n[0].opcode];
1097 n += InstSize[n[0].opcode];
1110 n += InstSize[n[0].opcode];
1312 * Allocate space for a display list instruction (opcode + payload space).
1313 * \param opcode the instruction opcode (OPCODE_* value)
1314 * \param bytes instruction payload size (not counting opcode)
1320 dlist_alloc(struct gl_context *ctx, OpCode opcode, GLuint bytes, bool align8)
1327 if (opcode < OPCODE_EXT_0) {
1328 if (InstSize[opcode] == 0) {
1330 InstSize[opcode] = numNodes;
1334 assert(numNodes == InstSize[opcode]);
1340 /* The opcode would get placed at node[0] and the payload would start
1355 n[0].opcode = OPCODE_CONTINUE;
1370 * we have to insert a NOP so that the payload of the real opcode lands
1382 n[0].opcode = OPCODE_NOP;
1384 /* The "real" opcode will now be at an odd location and the payload
1390 n[0].opcode = opcode;
1401 * \param opcode the instruction opcode (OPCODE_* value)
1402 * \param bytes instruction size in bytes, not counting opcode.
1404 * opcode).
1407 _mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint bytes)
1409 Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, false);
1411 return n + 1; /* return pointer to payload area, after opcode */
1422 _mesa_dlist_alloc_aligned(struct gl_context *ctx, GLuint opcode, GLuint bytes)
1424 Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, true);
1426 return n + 1; /* return pointer to payload area, after opcode */
1440 * \return the new opcode number or -1 if error
1451 ctx->ListExt->Opcode[i].Size =
1453 ctx->ListExt->Opcode[i].Execute = execute;
1454 ctx->ListExt->Opcode[i].Destroy = destroy;
1455 ctx->ListExt->Opcode[i].Print = print;
1464 * an array of Nodes where node[0] holds the opcode, node[1] is the first
1467 * \param opcode one of OPCODE_x
1472 alloc_instruction(struct gl_context *ctx, OpCode opcode, GLuint nparams)
1474 return dlist_alloc(ctx, opcode, nparams * sizeof(Node), false);
3020 save_LogicOp(GLenum opcode)
3027 n[1].e = opcode;
3030 CALL_LogicOp(ctx->Exec, (opcode));
8041 const OpCode opcode = n[0].opcode;
8043 if (is_ext_opcode(opcode)) {
8047 switch (opcode) {
9169 _mesa_snprintf(msg, sizeof(msg), "Error in execute_list: opcode=%d",
9170 (int) opcode);
9177 if (opcode != OPCODE_CONTINUE) {
9178 n += InstSize[opcode];
10102 const OpCode opcode = n[0].opcode;
10104 if (is_ext_opcode(opcode)) {
10108 switch (opcode) {
10361 if (opcode < 0 || opcode > OPCODE_END_OF_LIST) {
10363 ("ERROR IN DISPLAY LIST: opcode = %d, address = %p\n",
10364 opcode, (void *) n);
10368 fprintf(f, "command %d, %u operands\n", opcode,
10369 InstSize[opcode]);
10373 if (opcode != OPCODE_CONTINUE) {
10374 n += InstSize[opcode];