gen8_instruction *send = next_inst(BRW_OPCODE_SEND);
gen8_set_dst(brw, send, dst);
gen8_set_src0(brw, send, offset);
- gen8_set_dp_message(brw, send, GEN7_SFID_DATAPORT_DATA_CACHE,
- surf_index,
- GEN6_DATAPORT_READ_MESSAGE_OWORD_DUAL_BLOCK_READ,
- 0, /* message control */
- 1, /* mlen */
- 1, /* rlen */
- false, /* no header */
- false); /* EOT */
+ gen8_set_sampler_message(brw, send,
+ surf_index,
+ 0, /* The LD message ignores the sampler unit. */
+ GEN5_SAMPLER_MESSAGE_SAMPLE_LD,
+ 1, /* rlen */
+ 1, /* mlen */
+ false, /* no header */
+ BRW_SAMPLER_SIMD_MODE_SIMD4X2);
brw_mark_surface_used(&prog_data->base, surf_index);
}