diff options
author | Kristian Høgsberg <[email protected]> | 2014-07-07 15:00:46 -0700 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-08-15 10:33:41 -0700 |
commit | ff7a2fc322a0ae0a36a976444b7506e9313ac630 (patch) | |
tree | b74e933dc0490a2514fadfe14d8964497161e7a3 /src/mesa/drivers/dri/i965/brw_context.c | |
parent | 1effbf68983c924b3b70fd2fd9206af6b5475335 (diff) |
i965: Add context flag to disable the viewport transform
This lets us disable the viewport transform, which will be useful for
emitting 3DPRIM_RECTLIST.
Signed-off-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 6f621e0db42..97790a2aa4b 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -757,6 +757,7 @@ 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; ctx->VertexProgram._MaintainTnlProgram = true; ctx->FragmentProgram._MaintainTexEnvProgram = true; |