[Mesa-dev] [PATCH 01/15] i965/vec4: Set NoMask for GS_OPCODE_SET_VERTEX_COUNT on Gen8+.

Kenneth Graunke kenneth at whitecape.org
Mon Aug 11 22:18:26 PDT 2014


Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: "10.2" <mesa-stable at lists.freedesktop.org>
---
 src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
index 6951f88..db66d68 100644
--- a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
+++ b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
@@ -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
-- 
2.0.2



More information about the mesa-dev mailing list