summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-03-13 12:56:29 +1000
committerDave Airlie <airlied@redhat.com>2009-03-13 13:01:30 +1000
commitf70d7a0fd9ac3659d93511ab362eb80a7ff49777 (patch)
treeb4b1eb78521aeb960c2e5866984a05519b36ce3b /src/radeon_driver.c
parent1fe0dcfe98dfe30499ba53c1f208c4ef10bef001 (diff)
r600: reload shaders into VRAM on resume
As VRAM gets zeroed out over s/r, we need to reload the shaders.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 2456dc58..c0f5e7bf 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -5663,6 +5663,8 @@ Bool RADEONEnterVT(int scrnIndex, int flags)
#ifdef XF86DRI
if (info->directRenderingEnabled) {
+ if (info->ChipFamily >= CHIP_FAMILY_R600)
+ R600LoadShaders(pScrn);
RADEONCP_START(pScrn, info);
DRIUnlock(pScrn->pScreen);
}