Commit 2c6a7fbe authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig
Browse files

panfrost: Fix clipping region


Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa@rosenzweig.io>
parent fa1b36dd
......@@ -557,10 +557,17 @@ panfrost_viewport(struct panfrost_context *ctx,
* (somewhat) asymmetric ints. */
struct mali_viewport ret = {
.clip_minx = viewport_x0,
.clip_miny = viewport_y0,
.clip_maxx = viewport_x1,
.clip_maxy = viewport_x1,
/* By default, do no viewport clipping, i.e. clip to (-inf,
* inf) in each direction. Clipping to the viewport in theory
* should work, but in practice causes issues when we're not
* explicitly trying to scissor */
.clip_minx = -inff,
.clip_miny = -inff,
.clip_maxx = inff,
.clip_maxy = inff,
/* We always perform depth clipping (TODO: Can this be disabled?) */
.clip_minz = depth_clip_near,
.clip_maxz = depth_clip_far,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment