Lines Matching refs:inst
184 struct tgsi_full_instruction *inst = &ctx->FullToken.FullInstruction;
186 memset(inst, 0, sizeof *inst);
187 copy_token(&inst->Instruction, &token);
189 if (inst->Instruction.Label) {
190 next_token( ctx, &inst->Label);
193 if (inst->Instruction.Texture) {
194 next_token( ctx, &inst->Texture);
195 for (i = 0; i < inst->Texture.NumOffsets; i++) {
196 next_token( ctx, &inst->TexOffsets[i] );
200 if (inst->Instruction.Memory) {
201 next_token(ctx, &inst->Memory);
204 assert( inst->Instruction.NumDstRegs <= TGSI_FULL_MAX_DST_REGISTERS );
206 for (i = 0; i < inst->Instruction.NumDstRegs; i++) {
208 next_token( ctx, &inst->Dst[i].Register );
210 if (inst->Dst[i].Register.Indirect)
211 next_token( ctx, &inst->Dst[i].Indirect );
213 if (inst->Dst[i].Register.Dimension) {
214 next_token( ctx, &inst->Dst[i].Dimension );
219 assert( !inst->Dst[i].Dimension.Dimension );
221 if (inst->Dst[i].Dimension.Indirect)
222 next_token( ctx, &inst->Dst[i].DimIndirect );
226 assert( inst->Instruction.NumSrcRegs <= TGSI_FULL_MAX_SRC_REGISTERS );
228 for (i = 0; i < inst->Instruction.NumSrcRegs; i++) {
230 next_token( ctx, &inst->Src[i].Register );
232 if (inst->Src[i].Register.Indirect)
233 next_token( ctx, &inst->Src[i].Indirect );
235 if (inst->Src[i].Register.Dimension) {
236 next_token( ctx, &inst->Src[i].Dimension );
241 assert( !inst->Src[i].Dimension.Dimension );
243 if (inst->Src[i].Dimension.Indirect)
244 next_token( ctx, &inst->Src[i].DimIndirect );