Thread (2 messages) 2 messages, 2 authors, 2005-05-02

Re: [PATCH] fbdev: Batch cmap changes at driver level

From: James Simmons <hidden>
Date: 2005-05-02 19:33:55

This patch adds to the fbdev interface a set_cmap callback that allow
the driver to "batch" palette changes. This is useful for drivers like
radeonfb which might require lenghtly workarounds on palette accesses,
thus allowing to factor out those workarounds efficiently.
+	/* set color registers in batch */
+	int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info);
+
 	/* blank display */
 	int (*fb_blank)(int blank, struct fb_info *info);
The old fb_setcolreg is a hang over from the old api. Every driver 
implemented the fb_setcolreg but not every one has a fb_setcmap. So I went 
with fb_setcolreg instead. I hope to see drivers move over to this 
function instead. The only question is how to avoid setting color register 
that don't need changes. That can be expensive.
 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help