Home | History | Annotate | Download | only in r600

Lines Matching refs:tex

442 	struct r600_bytecode_tex tex;
444 tex.inst = bytes[bytes_read++];
445 tex.resource_id = bytes[bytes_read++];
446 tex.src_gpr = bytes[bytes_read++];
447 tex.src_rel = bytes[bytes_read++];
448 tex.dst_gpr = bytes[bytes_read++];
449 tex.dst_rel = bytes[bytes_read++];
450 tex.dst_sel_x = bytes[bytes_read++];
451 tex.dst_sel_y = bytes[bytes_read++];
452 tex.dst_sel_z = bytes[bytes_read++];
453 tex.dst_sel_w = bytes[bytes_read++];
454 tex.lod_bias = bytes[bytes_read++];
455 tex.coord_type_x = bytes[bytes_read++];
456 tex.coord_type_y = bytes[bytes_read++];
457 tex.coord_type_z = bytes[bytes_read++];
458 tex.coord_type_w = bytes[bytes_read++];
459 tex.offset_x = bytes[bytes_read++];
460 tex.offset_y = bytes[bytes_read++];
461 tex.offset_z = bytes[bytes_read++];
462 tex.sampler_id = bytes[bytes_read++];
463 tex.src_sel_x = bytes[bytes_read++];
464 tex.src_sel_y = bytes[bytes_read++];
465 tex.src_sel_z = bytes[bytes_read++];
466 tex.src_sel_w = bytes[bytes_read++];
468 r600_bytecode_add_tex(ctx->bc, &tex);
3758 struct r600_bytecode_tex tex;
3788 memset(&tex, 0, sizeof(struct r600_bytecode_tex));
3789 tex.inst = (i == 1) ? SQ_TEX_INST_SET_GRADIENTS_H :
3791 tex.sampler_id = tgsi_tex_get_src_gpr(ctx, sampler_src_reg);
3792 tex.resource_id = tex.sampler_id + R600_MAX_CONST_BUFFERS;
3795 tex.src_gpr = r600_get_temp(ctx);
3796 tex.src_sel_x = 0;
3797 tex.src_sel_y = 1;
3798 tex.src_sel_z = 2;
3799 tex.src_sel_w = 3;
3805 alu.dst.sel = tex.src_gpr;
3816 tex.src_gpr = tgsi_tex_get_src_gpr(ctx, i);
3817 tex.src_sel_x = ctx->src[i].swizzle[0];
3818 tex.src_sel_y = ctx->src[i].swizzle[1];
3819 tex.src_sel_z = ctx->src[i].swizzle[2];
3820 tex.src_sel_w = ctx->src[i].swizzle[3];
3821 tex.src_rel = ctx->src[i].rel;
3823 tex.dst_gpr = ctx->temp_reg; /* just to avoid confusing the asm scheduler */
3824 tex.dst_sel_x = tex.dst_sel_y = tex.dst_sel_z = tex.dst_sel_w = 7;
3826 tex.coord_type_x = 1;
3827 tex.coord_type_y = 1;
3828 tex.coord_type_z = 1;
3829 tex.coord_type_w = 1;
3831 r = r600_bytecode_add_tex(ctx->bc, &tex);
4077 memset(&tex, 0, sizeof(struct r600_bytecode_tex));
4078 tex.inst = opcode;
4080 tex.sampler_id = tgsi_tex_get_src_gpr(ctx, sampler_src_reg);
4081 tex.resource_id = tex.sampler_id + R600_MAX_CONST_BUFFERS;
4082 tex.src_gpr = src_gpr;
4083 tex.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
4084 tex.dst_sel_x = (inst->Dst[0].Register.WriteMask & 1) ? 0 : 7;
4085 tex.dst_sel_y = (inst->Dst[0].Register.WriteMask & 2) ? 1 : 7;
4086 tex.dst_sel_z = (inst->Dst[0].Register.WriteMask & 4) ? 2 : 7;
4087 tex.dst_sel_w = (inst->Dst[0].Register.WriteMask & 8) ? 3 : 7;
4090 tex.src_sel_x = 4;
4091 tex.src_sel_y = 4;
4092 tex.src_sel_z = 4;
4093 tex.src_sel_w = 4;
4095 tex.src_sel_x = 0;
4096 tex.src_sel_y = 1;
4097 tex.src_sel_z = 2;
4098 tex.src_sel_w = 3;
4100 tex.src_sel_x = ctx->src[0].swizzle[0];
4101 tex.src_sel_y = ctx->src[0].swizzle[1];
4102 tex.src_sel_z = ctx->src[0].swizzle[2];
4103 tex.src_sel_w = ctx->src[0].swizzle[3];
4104 tex.src_rel = ctx->src[0].rel;
4109 tex.src_sel_x = 1;
4110 tex.src_sel_y = 0;
4111 tex.src_sel_z = 3;
4112 tex.src_sel_w = 2; /* route Z compare or Lod value into W */
4117 tex.coord_type_x = 1;
4118 tex.coord_type_y = 1;
4120 tex.coord_type_z = 1;
4121 tex.coord_type_w = 1;
4123 tex.offset_x = offset_x;
4124 tex.offset_y = offset_y;
4125 tex.offset_z = offset_z;
4136 tex.src_sel_w = tex.src_sel_z;
4144 tex.coord_type_y = 0;
4147 tex.coord_type_z = 0;
4148 tex.src_sel_z = tex.src_sel_y;
4153 tex.coord_type_z = 0;
4155 r = r600_bytecode_add_tex(ctx->bc, &tex);