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_state.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_state.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_state.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_state.c b/src/gallium/drivers/freedreno/freedreno_state.c index 10031977e61..2f5d52c017c 100644 --- a/src/gallium/drivers/freedreno/freedreno_state.c +++ b/src/gallium/drivers/freedreno/freedreno_state.c @@ -137,14 +137,10 @@ fd_set_framebuffer_state(struct pipe_context *pctx, ctx->dirty |= FD_DIRTY_FRAMEBUFFER; - /* also need to reset the scissor.. mesa/gl state tracker - * does this for us, but u_blitter doesn't and other - * state trackers might not.. - */ - ctx->scissor.minx = 0; - ctx->scissor.miny = 0; - ctx->scissor.maxx = cso->width; - ctx->scissor.maxy = cso->height; + ctx->disabled_scissor.minx = 0; + ctx->disabled_scissor.miny = 0; + ctx->disabled_scissor.maxx = cso->width; + ctx->disabled_scissor.maxy = cso->height; ctx->dirty |= FD_DIRTY_SCISSOR; } |