ir_constant_data junk_data;
ir->coordinate = new(mem_ctx) ir_constant(coordinate_type, &junk_data);
- if (fpi->TexShadow) {
+ if (fpi->TexShadow)
shadow_c = offset(coordinate, 2);
- ir->shadow_comparitor = new(mem_ctx) ir_constant(0.0f);
- }
coordinate = rescale_texcoord(ir, coordinate,
fpi->TexSrcTarget == TEXTURE_RECT_INDEX,
/* g0 header. */
mlen = 1;
- if (ir->shadow_comparitor) {
+ if (shadow_c.file != BAD_FILE) {
for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
emit(MOV(fs_reg(MRF, base_mrf + mlen + i), coordinate));
coordinate.reg_offset++;
}
mlen += vector_elements * reg_width;
- if (ir->shadow_comparitor) {
+ if (shadow_c.file != BAD_FILE) {
mlen = MAX2(mlen, header_present + 4 * reg_width);
emit(MOV(fs_reg(MRF, base_mrf + mlen), shadow_c));
length++;
}
- if (ir->shadow_comparitor) {
+ if (shadow_c.file != BAD_FILE) {
emit(MOV(sources[length], shadow_c));
length++;
}
break;
case ir_tg4:
if (has_nonconstant_offset) {
- if (ir->shadow_comparitor)
+ if (shadow_c.file != BAD_FILE)
no16("Gen7 does not support gather4_po_c in SIMD16 mode.");
/* More crazy intermixing */