i965/vec4: Set NoMask for GS_OPCODE_SET_VERTEX_COUNT on Gen8+.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 15:15:57 +0000 (08:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Aug 2014 20:39:24 +0000 (13:39 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp

index 6951f887d0a8c84f57a7c55108aec92ea77da9ed..db66d681c639ce149e5805bb1053a5f8ca810eca 100644 (file)
@@ -189,7 +189,9 @@ gen8_vec4_generator::generate_gs_set_vertex_count(struct brw_reg eot_mrf_header,
    /* Move the vertex count into the second MRF for the EOT write. */
    assert(eot_mrf_header.file == BRW_MESSAGE_REGISTER_FILE);
    int dst_nr = GEN7_MRF_HACK_START + eot_mrf_header.nr + 1;
-   MOV(retype(brw_vec8_grf(dst_nr, 0), BRW_REGISTER_TYPE_UD), src);
+   gen8_instruction *inst =
+      MOV(retype(brw_vec8_grf(dst_nr, 0), BRW_REGISTER_TYPE_UD), src);
+   gen8_set_mask_control(inst, BRW_MASK_DISABLE);
 }
 
 void