diff options
author | Andrii Simiklit <[email protected]> | 2018-08-15 18:20:32 +0300 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2018-08-28 15:32:45 +0200 |
commit | 1b0df8a46020cc88afeaa4decb42a782ab168afb (patch) | |
tree | 6d64450b7d19c7ff16137303ee46afa32d2b4984 /src/mesa/drivers/dri/i965 | |
parent | 743e11c10b180247488ae0cc24900560e0a74e2b (diff) |
i965/gen6/xfb: handle case where transform feedback is not active
When the SVBI Payload Enable is false I guess the register R1.4
which contains the Maximum Streamed Vertex Buffer Index is filled by zero
and GS stops to write transform feedback when the transform feedback
is not active.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107579
Signed-off-by: Andrii Simiklit <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index c051848985f..ca24394aa7d 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -2806,7 +2806,7 @@ genX(upload_gs_state)(struct brw_context *brw) #if GEN_GEN < 7 gs.SOStatisticsEnable = true; if (gs_prog->info.has_transform_feedback_varyings) - gs.SVBIPayloadEnable = true; + gs.SVBIPayloadEnable = _mesa_is_xfb_active_and_unpaused(ctx); /* GEN6_GS_SPF_MODE and GEN6_GS_VECTOR_MASK_ENABLE are enabled as it * was previously done for gen6. |