radeon: fix UMS since stp addition.
authorDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 07:17:34 +0000 (17:17 +1000)
committerDave Airlie <airlied@itt42.(none)>
Mon, 8 Feb 2010 07:18:02 +0000 (17:18 +1000)
UMS doesn't need the STP atom.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/radeon/radeon_ioctl.c

index db0e4f2f7aed4e131832958cb53cb19fc4e73fa1..c7ea452156883af0c5449d20c7e03c3cce215733 100644 (file)
@@ -92,7 +92,8 @@ void radeonSetUpAtomList( r100ContextPtr rmesa )
       insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.lit[i]);
    for (i = 0; i < 6; ++i)
       insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.ucp[i]);
-   insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.stp);
+   if (rmesa->radeon.radeonScreen->kernel_mm)
+      insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.stp);
    insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.eye);
    insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.grd);
    insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.fog);