[Mesa-dev] [PATCH 06/14] gallium/draw: support hack to disable clipping (v2)
David Heidelberger
david.heidelberger at ixit.cz
Mon Oct 20 05:37:49 PDT 2014
From: Christoph Bumiller <christoph.bumiller at speed.at>
v2: drop ifdef change, which may be send later in separate commit
Signed-off-by: David Heidelberger <david.heidelberger at ixit.cz>
---
src/gallium/auxiliary/draw/draw_context.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index b0f4ca2..20dea66 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -378,6 +378,11 @@ void draw_set_viewport_states( struct draw_context *draw,
viewport->translate[1] == 0.0f &&
viewport->translate[2] == 0.0f &&
viewport->translate[3] == 0.0f);
+
+ draw->driver.bypass_clip_xy = vps[0].scale[3] == 0.0f;
+ draw->clip_xy = !draw->driver.bypass_clip_xy;
+ draw->identity_viewport =
+ draw->identity_viewport || vps[0].scale[3] == 0.0f;
}
--
2.1.2
More information about the mesa-dev
mailing list