diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2009-04-12 13:11:06 +0200 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2009-04-12 13:11:06 +0200 |
commit | 8181f8fbf9c3d0f60191ee874248b8113b215e30 (patch) | |
tree | e9d278e211242deea310986aa773c8a87a15755e /src/mesa/drivers | |
parent | 5e361c47abf2ee20140628d327eda9b39351d415 (diff) |
radeon: emit scissor when using cs path
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_state_init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_state_init.c b/src/mesa/drivers/dri/radeon/radeon_state_init.c index 174a7e1862..c00f59f7ad 100644 --- a/src/mesa/drivers/dri/radeon/radeon_state_init.c +++ b/src/mesa/drivers/dri/radeon/radeon_state_init.c @@ -448,6 +448,17 @@ static void ctx_emit_cs(GLcontext *ctx, struct radeon_state_atom *atom) // } END_BATCH(); + BEGIN_BATCH_NO_AUTOSTATE(4); + OUT_BATCH(CP_PACKET0(RADEON_RE_TOP_LEFT, 0)); + OUT_BATCH(0); + OUT_BATCH(CP_PACKET0(RADEON_RE_WIDTH_HEIGHT, 0)); + if (rrb) { + OUT_BATCH(((rrb->width - 1) << RADEON_RE_WIDTH_SHIFT) | + ((rrb->height - 1) << RADEON_RE_HEIGHT_SHIFT)); + } else { + OUT_BATCH(0); + } + END_BATCH(); } static void cube_emit(GLcontext *ctx, struct radeon_state_atom *atom) |