nv50: enable shader watchdog timer
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 23 Apr 2012 18:08:54 +0000 (20:08 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 24 Apr 2012 10:26:31 +0000 (12:26 +0200)
src/gallium/drivers/nv50/nv50_screen.c

index a62c4b1e518d5262b775e26198e6d630260ca5b8..6de2319599ba81161395b1f2c056ce1d201a16be 100644 (file)
@@ -351,6 +351,11 @@ nv50_screen_init_hwctx(struct nv50_screen *screen, unsigned tls_space)
    BEGIN_NV04(push, NV50_3D(UNK1400_LANES), 1);
    PUSH_DATA (push, 0xf);
 
+   if (debug_get_bool_option("NOUVEAU_SHADER_WATCHDOG", TRUE)) {
+      BEGIN_NV04(push, NV50_3D(WATCHDOG_TIMER), 1);
+      PUSH_DATA (push, 0x18);
+   }
+
    BEGIN_NV04(push, NV50_3D(RT_CONTROL), 1);
    PUSH_DATA (push, 1);