i965: Drop brw_context::viewport_transform_enable.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 May 2017 19:01:41 +0000 (12:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 11 May 2017 23:53:28 +0000 (16:53 -0700)
This was used by the meta fast clear code.  Now that we've switched
back to BLORP, it's always true.

We might want it back when we add a RECTLIST extension to GL, but
that's someday in the future...

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/genX_state_upload.c

index 1247d0355f688fcd331e3ac03e88f0365a574c49..5055dd76a84483e68e093ccbcbd91fbfb065d8e7 100644 (file)
@@ -1126,7 +1126,6 @@ brwCreateContext(gl_api api,
    brw->prim_restart.in_progress = false;
    brw->prim_restart.enable_cut_index = false;
    brw->gs.enabled = false;
-   brw->sf.viewport_transform_enable = true;
    brw->clip.viewport_count = 1;
 
    brw->predicate.state = BRW_PREDICATE_STATE_RENDER;
index 100bd74f214fefb9520cd8fdab993f844e14c2c5..1fac63225f8923e7d565ed2d42046062f5fafe3f 100644 (file)
@@ -1061,7 +1061,6 @@ struct brw_context
       uint32_t prog_offset;
       uint32_t state_offset;
       uint32_t vp_offset;
-      bool viewport_transform_enable;
    } sf;
 
    struct {
index b949d5b448d80b7efeb8d05518bcc4a1c6cb2df1..bc7f068d5bb2cdf02f8d40f7959e384a37426e0d 100644 (file)
@@ -1345,7 +1345,7 @@ genX(upload_sf)(struct brw_context *brw)
 
    brw_batch_emit(brw, GENX(3DSTATE_SF), sf) {
       sf.StatisticsEnable = true;
-      sf.ViewportTransformEnable = brw->sf.viewport_transform_enable;
+      sf.ViewportTransformEnable = true;
 
 #if GEN_GEN == 7
       /* _NEW_BUFFERS */