| airlied ( @ 2007-06-03 17:37:00 |
radeon vblank interrupts + power stop : fix step one
I've added code to the radeon drm to support vblank interrupts on both CRTCs and a setparam to allow the DDX to enable/disable the interrupts. I haven't gotten any mesa support for this yet to actually figure out the interrupts but I'll get to that later I'm sure.
But for now it means that when no 3D apps are running we turn off all the vblank interrupts at least so we save power on laptops...
Of course we can do much better, than just turning interrupts off when no 3D is running, it would be nice to not have the interrupt happening when 3D is running this involves using the hardware counters for vblank. Need to think about that a bit more.
I've added code to the radeon drm to support vblank interrupts on both CRTCs and a setparam to allow the DDX to enable/disable the interrupts. I haven't gotten any mesa support for this yet to actually figure out the interrupts but I'll get to that later I'm sure.
But for now it means that when no 3D apps are running we turn off all the vblank interrupts at least so we save power on laptops...
Of course we can do much better, than just turning interrupts off when no 3D is running, it would be nice to not have the interrupt happening when 3D is running this involves using the hardware counters for vblank. Need to think about that a bit more.