From: Eric Anholt Date: Mon, 1 Feb 2010 17:41:26 +0000 (-0800) Subject: i965: Set GS rendering enabled even when the GS stage is disabled. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5878c841e90a8006715877045aa95a752472eaab;p=mesa.git i965: Set GS rendering enabled even when the GS stage is disabled. This is copying the behavior of other drivers. --- diff --git a/src/mesa/drivers/dri/i965/gen6_gs_state.c b/src/mesa/drivers/dri/i965/gen6_gs_state.c index 761059c96a0..9a4a13810ad 100644 --- a/src/mesa/drivers/dri/i965/gen6_gs_state.c +++ b/src/mesa/drivers/dri/i965/gen6_gs_state.c @@ -49,7 +49,8 @@ upload_gs_state(struct brw_context *brw) (brw->gs.prog_data->urb_read_length << GEN6_GS_URB_READ_LENGTH_SHIFT) | (0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT)); OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) | - GEN6_GS_STATISTICS_ENABLE); + GEN6_GS_STATISTICS_ENABLE | + GEN6_GS_RENDERING_ENABLE); OUT_BATCH(GEN6_GS_ENABLE); ADVANCE_BATCH(); } else { @@ -63,7 +64,8 @@ upload_gs_state(struct brw_context *brw) (0 << GEN6_GS_URB_READ_LENGTH_SHIFT) | (0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT)); OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) | - GEN6_GS_STATISTICS_ENABLE); + GEN6_GS_STATISTICS_ENABLE | + GEN6_GS_RENDERING_ENABLE); OUT_BATCH(0); ADVANCE_BATCH(); }