Lines Matching refs:opcode
39 { .opcode = TGSI_OPCODE_ ## name, \
43 #define OPCODE_GAP(opc) { .opcode = opc },
54 tgsi_get_opcode_info(enum tgsi_opcode opcode)
58 ASSERT_BITFIELD_SIZE(struct tgsi_opcode_info, opcode, TGSI_OPCODE_LAST - 1);
66 assert(opcode_info[i].opcode == i);
69 if (opcode < TGSI_OPCODE_LAST)
70 return &opcode_info[opcode];
88 tgsi_get_opcode_name(enum tgsi_opcode opcode)
90 if (opcode >= ARRAY_SIZE(opcode_names))
92 return opcode_names[opcode];
118 * Infer the type (of the dst) of the opcode.
123 tgsi_opcode_infer_type(enum tgsi_opcode opcode)
125 switch (opcode) {
248 * infer the source type of a TGSI opcode.
251 tgsi_opcode_infer_src_type(enum tgsi_opcode opcode, uint src_idx)
254 (opcode == TGSI_OPCODE_DLDEXP || opcode == TGSI_OPCODE_LDEXP))
258 (opcode == TGSI_OPCODE_LOAD))
262 (opcode == TGSI_OPCODE_STORE))
266 ((opcode >= TGSI_OPCODE_ATOMUADD && opcode <= TGSI_OPCODE_ATOMIMAX) ||
267 opcode == TGSI_OPCODE_ATOMINC_WRAP || opcode == TGSI_OPCODE_ATOMDEC_WRAP))
270 switch (opcode) {
328 return tgsi_opcode_infer_type(opcode);
333 * infer the destination type of a TGSI opcode.
336 tgsi_opcode_infer_dst_type(enum tgsi_opcode opcode, uint dst_idx)
338 if (dst_idx == 1 && opcode == TGSI_OPCODE_DFRACEXP)
341 return tgsi_opcode_infer_type(opcode);