Re: latest version of radeonfb
Olaf Leidinger <[email protected]>
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <1100878793.9836.0.camel@localhost> |
Am Fr, den 19.11.2004 schrieb Antonino A. Daplas um 1:00:
> On Friday 19 November 2004 07:20, Olaf Leidinger wrote:
> > Hello!
> >
> > > Do you have a list of the patches you found?
> >
> > Well, no ... but when searching the archive of this list for
"radeonfb
> > patch" ( - Require All Words - checked ) you'll find the patches I
> > found ;-)
> >
> > The accel-patch I tried is located at:
> > http://sourceforge.net/mailarchive/message.php?msg_id=7134262
>
> That's already in mainline for a long time, not the exact patch of
course.
>
> You're probably looking at a different file, the accel ops are in
radeon_accel.c
Okay... but when booting using the fb providet by radeonfb I get no
accel (fbset -i tells it is deactivated) . So I patched radeonfb to set
info->fix.accel = FB_ACCEL_ATI_RADEON (similar to the aty-driver). Now
directfb loads its radeon driver but it exits immediately...
This part of the patch I discoverd after I tried my self-made hack seems
to do the same (if not more ;-) ) but it isn't part of radeon_base.c as
it ships with linux-2.6.9
- if (noaccel)
- info->fix.accel = FB_ACCEL_NONE;
- else
- info->fix.accel = FB_ACCEL_ATI_RADEON;
-
- fb_alloc_cmap(&info->cmap, 256, 0);
-
- if (noaccel)
+ if (noaccel) {
+ info->fix.accel = FB_ACCEL_NONE;
info->var.accel_flags &= ~FB_ACCELF_TEXT;
- else
+ info->fbops = &radeonfb_noaccel_ops;
+ } else {
+ info->fix.accel = FB_ACCEL_ATI_RADEON;
info->var.accel_flags |= FB_ACCELF_TEXT;
+ info->fbops = &radeonfb_ops;
+ }
+ fb_alloc_cmap(&info->cmap, 256, 0);
Nor the lines that the patch removes are part of the official
radeon_base.c
They should be around line 1750
Ciao,
Olaf
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8