X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fdrivers%2Fdri%2Fi965%2Fbrw_vec4_visitor.cpp;h=432c2182d3d0d846075bb34367a1b206d1f8bce7;hb=530445330b403d835a4027b41388b5eea8c2e1ab;hp=307f81f601c7518c1e061b0192aa524e28f5daaf;hpb=5f878d1b470e5307ec18ca409e73b1a81e8361fa;p=mesa.git diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 307f81f601c..432c2182d3d 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1751,10 +1751,12 @@ vec4_visitor::visit(ir_expression *ir) emit(MOV(grf_offset, offset)); - emit(new(mem_ctx) vec4_instruction(VS_OPCODE_PULL_CONSTANT_LOAD_GEN7, - dst_reg(packed_consts), - surf_index, - src_reg(grf_offset))); + vec4_instruction *pull = + emit(new(mem_ctx) vec4_instruction(VS_OPCODE_PULL_CONSTANT_LOAD_GEN7, + dst_reg(packed_consts), + surf_index, + src_reg(grf_offset))); + pull->mlen = 1; } else { vec4_instruction *pull = emit(new(mem_ctx) vec4_instruction(VS_OPCODE_PULL_CONSTANT_LOAD, @@ -3431,6 +3433,7 @@ vec4_visitor::emit_pull_constant_load(bblock_t *block, vec4_instruction *inst, load = new(mem_ctx) vec4_instruction(VS_OPCODE_PULL_CONSTANT_LOAD_GEN7, temp, index, src_reg(grf_offset)); + load->mlen = 1; } else { load = new(mem_ctx) vec4_instruction(VS_OPCODE_PULL_CONSTANT_LOAD, temp, index, offset);