diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-06 15:20:13 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-06 15:20:13 +1000 |
commit | 503b51343267248b4c6994b88238dd5384528f03 (patch) | |
tree | 0eac88df2a9cef93bd74fcb804f905c658445566 /src/radeon_kms.c | |
parent | d78d50591851d14543f0935d051a59ef29751bbc (diff) |
radeon: taken from kms-support + CS fixes commit.
re-emit 2D state and reset 3D state emit on flush
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 7ecfe88c..4ff1c6af 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -78,6 +78,13 @@ void radeon_cs_flush_indirect(ScrnInfoPtr pScrn) return; radeon_cs_emit(info->cs); radeon_cs_erase(info->cs); + + if (info->reemit_current2d) + info->reemit_current2d(pScrn, 0); + if (info->dri2.enabled) { + info->accel_state->XInited3D = FALSE; + info->accel_state->engineMode = EXA_ENGINEMODE_UNKNOWN; + } } void radeon_ddx_cs_start(ScrnInfoPtr pScrn, |