Lines Matching defs:tex
954 { "tex", s_type, s_sampler, s_coord, s_sparse, s_offset, s_proj, s_shadow, s_clamp };
1015 ir_texture *tex = new(mem_ctx) ir_texture(op, is_sparse);
1021 tex->opcode_string());
1029 tex->opcode_string());
1041 tex->set_sampler(sampler, type);
1045 tex->coordinate = read_rvalue(s_coord);
1046 if (tex->coordinate == NULL) {
1048 tex->opcode_string());
1056 tex->offset = read_rvalue(s_offset);
1057 if (tex->offset == NULL) {
1070 tex->projector = NULL;
1072 tex->projector = read_rvalue(s_proj);
1073 if (tex->projector == NULL) {
1075 tex->opcode_string());
1081 tex->shadow_comparator = NULL;
1083 tex->shadow_comparator = read_rvalue(s_shadow);
1084 if (tex->shadow_comparator == NULL) {
1086 tex->opcode_string());
1094 tex->clamp = NULL;
1096 tex->clamp = read_rvalue(s_clamp);
1097 if (tex->clamp == NULL) {
1099 tex->opcode_string());
1107 tex->lod_info.bias = read_rvalue(s_lod);
1108 if (tex->lod_info.bias == NULL) {
1116 tex->lod_info.lod = read_rvalue(s_lod);
1117 if (tex->lod_info.lod == NULL) {
1119 tex->opcode_string());
1124 tex->lod_info.sample_index = read_rvalue(s_sample_index);
1125 if (tex->lod_info.sample_index == NULL) {
1137 tex->lod_info.grad.dPdx = read_rvalue(s_dx);
1138 if (tex->lod_info.grad.dPdx == NULL) {
1142 tex->lod_info.grad.dPdy = read_rvalue(s_dy);
1143 if (tex->lod_info.grad.dPdy == NULL) {
1150 tex->lod_info.component = read_rvalue(s_component);
1151 if (tex->lod_info.component == NULL) {
1157 // tex and lod don't have any extra parameters.
1160 return tex;