summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-08-31 11:15:00 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-01-10 19:27:10 -0800
commit148c82d75797cda2c663bb10c224487da478d55b (patch)
tree76ce1c0e75466746fe0583ae778265f07377c4db
parent973022283cc3b174dd1f764503718cae95e44fc1 (diff)
i965: Respect the viewport transformation enable flag on Gen4-5.
In commit ff7a2fc322a0ae0a36a976444b7506e9313ac630, Kristian made viewport transformation optional on Gen6+, so he could disable it for RECTLIST primitives. Respecting that flag will allow us to use RECTLISTs on Gen4-5 as well. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_state.c b/src/mesa/drivers/dri/i965/brw_sf_state.c
index 75d64514ea..f1a3cc1e16 100644
--- a/src/mesa/drivers/dri/i965/brw_sf_state.c
+++ b/src/mesa/drivers/dri/i965/brw_sf_state.c
@@ -175,7 +175,8 @@ static void upload_sf_unit( struct brw_context *brw )
sf->sf5.sf_viewport_state_offset = (brw->batch.bo->offset64 +
brw->sf.vp_offset) >> 5; /* reloc */
- sf->sf5.viewport_transform = 1;
+ if (brw->sf.viewport_transform_enable)
+ sf->sf5.viewport_transform = 1;
/* _NEW_SCISSOR */
if (ctx->Scissor.EnableFlags)