mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
i965: Resolve implied moves in brw_dp_READ_4_vs_relative.
Fixes piglit test glsl-vs-arrays-3 on Sandybridge, as well as garbage rendering in 3DMarkMobileES 2.0's Taiji demo and GLBenchmark 2.0's Egypt and PRO demos. NOTE: This a candidate for stable release branches. It depends on commit9a21bc6401. (cherry picked from commit9d60a7ce08)
This commit is contained in:
parent
773ea1a234
commit
0f02b4253d
1 changed files with 3 additions and 1 deletions
|
|
@ -1799,6 +1799,7 @@ void brw_dp_READ_4_vs_relative(struct brw_compile *p,
|
|||
GLuint bind_table_index)
|
||||
{
|
||||
struct intel_context *intel = &p->brw->intel;
|
||||
struct brw_reg src = brw_vec8_grf(0, 0);
|
||||
int msg_type;
|
||||
|
||||
/* Setup MRF[1] with offset into const buffer */
|
||||
|
|
@ -1815,6 +1816,7 @@ void brw_dp_READ_4_vs_relative(struct brw_compile *p,
|
|||
addr_reg, brw_imm_d(offset));
|
||||
brw_pop_insn_state(p);
|
||||
|
||||
gen6_resolve_implied_move(p, &src, 0);
|
||||
struct brw_instruction *insn = next_insn(p, BRW_OPCODE_SEND);
|
||||
|
||||
insn->header.predicate_control = BRW_PREDICATE_NONE;
|
||||
|
|
@ -1823,7 +1825,7 @@ void brw_dp_READ_4_vs_relative(struct brw_compile *p,
|
|||
insn->header.mask_control = BRW_MASK_DISABLE;
|
||||
|
||||
brw_set_dest(p, insn, dest);
|
||||
brw_set_src0(insn, brw_vec8_grf(0, 0));
|
||||
brw_set_src0(insn, src);
|
||||
|
||||
if (intel->gen == 6)
|
||||
msg_type = GEN6_DATAPORT_READ_MESSAGE_OWORD_DUAL_BLOCK_READ;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue