From e9edbf0a688c68ef0896e5d4278f411f6b6f8398 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 1 Jun 2013 14:16:30 -0400 Subject: freedreno: better scissor fix Actually respect rasterizer state. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c') diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index dbdf5732658..b02b8b9f9f9 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -114,11 +114,12 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) { struct fd_context *ctx = fd_context(pctx); struct pipe_framebuffer_state *pfb = &ctx->framebuffer; + struct pipe_scissor_state *scissor = fd_context_get_scissor(ctx); unsigned i, buffers = 0; /* if we supported transform feedback, we'd have to disable this: */ - if (((ctx->scissor.maxx - ctx->scissor.minx) * - (ctx->scissor.maxy - ctx->scissor.miny)) == 0) { + if (((scissor->maxx - scissor->minx) * + (scissor->maxy - scissor->miny)) == 0) { return; } -- cgit v1.2.3