Lines Matching refs:imd
1947 struct immed *imd = &ctx->imm[inst->TexOffsets[0].Index]; in fill_offset_buffer() local
1953 snprintf(offbuf, 25, ", int(%d)", imd->val[inst->TexOffsets[0].SwizzleX].i); in fill_offset_buffer()
1961 …snprintf(offbuf, 25, ", ivec2(%d, %d)", imd->val[inst->TexOffsets[0].SwizzleX].i, imd->val[inst->T… in fill_offset_buffer()
1964 …snprintf(offbuf, 25, ", ivec3(%d, %d, %d)", imd->val[inst->TexOffsets[0].SwizzleX].i, imd->val[ins… in fill_offset_buffer()
1965 imd->val[inst->TexOffsets[0].SwizzleZ].i); in fill_offset_buffer()
3137 struct immed *imd = &ctx->imm[src->Register.Index]; in get_source_info() local
3147 if (imd->type == TGSI_IMM_UINT32 || imd->type == TGSI_IMM_INT32) { in get_source_info()
3148 if (imd->type == TGSI_IMM_UINT32) in get_source_info()
3153 if (stype == TGSI_TYPE_UNSIGNED && imd->type == TGSI_IMM_INT32) in get_source_info()
3155 else if (stype == TGSI_TYPE_SIGNED && imd->type == TGSI_IMM_UINT32) in get_source_info()
3158 if (imd->type == TGSI_IMM_INT32) in get_source_info()
3164 } else if (imd->type == TGSI_IMM_FLOAT64) { in get_source_info()
3185 if (imd->val[idx].ui > 0) { in get_source_info()
3191 switch (imd->type) { in get_source_info()
3193 if (isinf(imd->val[idx].f) || isnan(imd->val[idx].f)) { in get_source_info()
3195 snprintf(temp, 48, "uintBitsToFloat(%uU)", imd->val[idx].ui); in get_source_info()
3197 snprintf(temp, 25, "%.8g", imd->val[idx].f); in get_source_info()
3200 snprintf(temp, 25, "%uU", imd->val[idx].ui); in get_source_info()
3203 snprintf(temp, 25, "%d", imd->val[idx].i); in get_source_info()
3206 snprintf(temp, 48, "%uU", imd->val[idx].ui); in get_source_info()
3209 fprintf(stderr, "unhandled imm type: %x\n", imd->type); in get_source_info()
3778 struct immed *imd = &ctx->imm[(inst->Src[0].Register.Index)]; in iter_instruction() local
3788 if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) { in iter_instruction()
3790 snprintf(buf, 255, "EmitStreamVertex(%d);\n", imd->val[inst->Src[0].Register.SwizzleX].ui); in iter_instruction()
3797 struct immed *imd = &ctx->imm[(inst->Src[0].Register.Index)]; in iter_instruction() local
3798 if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) { in iter_instruction()
3800 … snprintf(buf, 255, "EndStreamPrimitive(%d);\n", imd->val[inst->Src[0].Register.SwizzleX].ui); in iter_instruction()
3879 struct immed *imd = &ctx->imm[(inst->Src[0].Register.Index)]; in iter_instruction() local
3880 uint32_t val = imd->val[inst->Src[0].Register.SwizzleX].ui; in iter_instruction()