Lines Matching defs:fullinst
108 const struct tgsi_full_instruction *fullinst,
270 assert(fullinst->Instruction.Texture);
273 if (is_texture_inst(fullinst->Instruction.Opcode)) {
274 const unsigned target = fullinst->Texture.Texture;
293 !is_mem_query_inst(fullinst->Instruction.Opcode)) {
297 (fullinst->Memory.Texture == TGSI_TEXTURE_2D_MSAA ||
298 fullinst->Memory.Texture == TGSI_TEXTURE_2D_ARRAY_MSAA)) {
305 if (tgsi_get_opcode_info(fullinst->Instruction.Opcode)->is_store) {
338 const struct tgsi_full_instruction *fullinst,
346 assert(fullinst->Instruction.Opcode < TGSI_OPCODE_LAST);
347 info->opcode_count[fullinst->Instruction.Opcode]++;
349 switch (fullinst->Instruction.Opcode) {
375 sampler_src = fullinst->Instruction.NumSrcRegs - 1;
376 if (fullinst->Src[sampler_src].Register.File != TGSI_FILE_SAMPLER)
380 if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File))
384 if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File)) {
387 if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
406 if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File)) {
409 if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
416 if (tgsi_is_bindless_image_file(fullinst->Dst[0].Register.File)) {
419 if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
432 if (fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_CENTROID ||
433 fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_OFFSET ||
434 fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_SAMPLE) {
435 const struct tgsi_full_src_register *src0 = &fullinst->Src[0];
452 switch (fullinst->Instruction.Opcode) {
466 switch (fullinst->Instruction.Opcode) {
481 if ((fullinst->Instruction.Opcode >= TGSI_OPCODE_F2D &&
482 fullinst->Instruction.Opcode <= TGSI_OPCODE_DSSG) ||
483 fullinst->Instruction.Opcode == TGSI_OPCODE_DFMA ||
484 fullinst->Instruction.Opcode == TGSI_OPCODE_DDIV ||
485 fullinst->Instruction.Opcode == TGSI_OPCODE_D2U64 ||
486 fullinst->Instruction.Opcode == TGSI_OPCODE_D2I64 ||
487 fullinst->Instruction.Opcode == TGSI_OPCODE_U642D ||
488 fullinst->Instruction.Opcode == TGSI_OPCODE_I642D)
491 for (i = 0; i < fullinst->Instruction.NumSrcRegs; i++) {
492 scan_src_operand(info, fullinst, &fullinst->Src[i], i,
493 tgsi_util_get_inst_usage_mask(fullinst, i),
496 if (fullinst->Src[i].Register.Indirect) {
499 src.Register.File = fullinst->Src[i].Indirect.File;
500 src.Register.Index = fullinst->Src[i].Indirect.Index;
502 scan_src_operand(info, fullinst, &src, -1,
503 1 << fullinst->Src[i].Indirect.Swizzle,
507 if (fullinst->Src[i].Register.Dimension &&
508 fullinst->Src[i].Dimension.Indirect) {
511 src.Register.File = fullinst->Src[i].DimIndirect.File;
512 src.Register.Index = fullinst->Src[i].DimIndirect.Index;
514 scan_src_operand(info, fullinst, &src, -1,
515 1 << fullinst->Src[i].DimIndirect.Swizzle,
520 if (fullinst->Instruction.Texture) {
521 for (i = 0; i < fullinst->Texture.NumOffsets; i++) {
524 src.Register.File = fullinst->TexOffsets[i].File;
525 src.Register.Index = fullinst->TexOffsets[i].Index;
528 scan_src_operand(info, fullinst, &src, -1,
529 (1 << fullinst->TexOffsets[i].SwizzleX) |
530 (1 << fullinst->TexOffsets[i].SwizzleY) |
531 (1 << fullinst->TexOffsets[i].SwizzleZ),
537 for (i = 0; i < fullinst->Instruction.NumDstRegs; i++) {
538 const struct tgsi_full_dst_register *dst = &fullinst->Dst[i];
546 scan_src_operand(info, fullinst, &src, -1,
559 scan_src_operand(info, fullinst, &src, -1,
566 assert(fullinst->Instruction.Opcode == TGSI_OPCODE_STORE);
572 if (fullinst->Memory.Texture == TGSI_TEXTURE_2D_MSAA ||
573 fullinst->Memory.Texture == TGSI_TEXTURE_2D_ARRAY_MSAA) {
596 if (computes_derivative(fullinst->Instruction.Opcode))