diff options
author | Rob Clark <[email protected]> | 2013-06-01 14:16:30 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-06-08 13:15:51 -0400 |
commit | e9edbf0a688c68ef0896e5d4278f411f6b6f8398 (patch) | |
tree | bd6ce7e7ae737c5fdefac62aa3c10b3be3029125 /src/gallium/drivers/freedreno/freedreno_draw.c | |
parent | 4af1dcbb7d5431ae75cc39568c99d7a20231f081 (diff) |
freedreno: better scissor fix
Actually respect rasterizer state.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |