Go Back   xda-developers > HTC Hermes: 8525, TyTN, MDA Vario II, JasJam > 8525, TyTN, MDA Vario II, JasJam General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th March 2007, 02:05 PM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Talking Fix your ATI ImageON woes with this patch!

So, after a day with my AKU3.3 equipped 8525, Platform Builder, IDA Pro and HexCmp, I believe I've finally gotten to the bottom of the ATI ImageON acceleration bug. This is the bug that causes the screen to "tear" during accelerated video playback using CorePlayer, TCPMP or other players that take advantage of the ImageON hardware acceleration. Once this bug is occuring, the entire screen is unreadable until you somehow exit from the video player.

Note that even after this patch is applied there will still remain some "pixelation" artifacts. However, there's a great thread on CoreCodec.com that can be found here. The thread explains how to resolve most of these. Consider that thread "extra credit" though since all in all, this patch alone resolved about 90% of the ATI issues with my AKU2.3 test device (running the South African 1.35 TyTN ROM).

It was a buffer problem you see....

I've attached a cab which modifies the ATI DDI setup file to the AKU3.3 parameters. I've experienced great results with CorePlayer when using this on an AKU2.3 hermes. I only had to check all the boxes in CorePlayer's ATI IMAGEON setup page. By Default, 2 aren't checked:

"Green Tint" bug compensation
Keep ATI driver active (just test)

I believe it is the second parameter that corrects an out of memory crash when a clip is played in full screen mode the second time.

The above settings are workarounds however since the full benefits of this fix will only be available if the setup file is used in conjunction with the latest versions of the ATI drivers. Unfortunately, these drivers must be "baked" into a ROM. Do not try to install these drivers! You will brick your device if you do and a hard reset will be necessary to fix. Install the attached cab file instead and wait for the chefs here to build the new drivers into their next ROM release.

ROM Chefs: you can find the files that make up the release here
Delete the old versions and bake all three files in the zip into the /windows directory.

Now to the Technical.

ATI released 3 files as part of their DDI update: ace_ddi.dll, ahioem.dll and a hidden little configuration file named atihwtbl0.txt. It's this little text file that contains the magic since ace_ddi.dll uses it to configure several settings at startup. I haven't fully analyzed the changes yet and am in the process of doing this now but at first glance they appear to either move or increase the size of several video buffers in memory. It almost looks like there was an overlap issue with audio buffers

Anyway, enjoy this little patch!

As always, while I'm pretty sure that this patch will rock your ATI world, I take no responsibility for any "undocumented features" that may crop up. I've only done minimal testing on the TyTN 1.35 ROM so far. It must be right though... there weren't any syntax errors.

Installation instructions:

Download the attached CAB file
tap to install (it will ask to reset your device)
note: you must install this to your device. The patch won't work if you install it to a storage card.

If you experience side effects, removal is simple. From Settings->System->Remove Programs just remove "Sleuth's ATIFix". Be sure to reset your device after the uninstall finishes.

edit:

It's important to read the TyTN thread located on the CoreCodec forum. Here is the link to that thread. There's a lot of good information concerning the scope of this patch (which takes the form of AKU3.3 experiences) and what still remains to be done. In this thread, schriss does a good job benchmarking the ATI playback and also has some good suggestions, some of which I'm hoping will be implemented in future versions of CorePlayer (such as allowing a YV12 option for the ATI decoder). Also, as the thread points out, DivX decoding using the ImageON remains a challenge (like I said, my patch alone solves about 90% of the issues). Hopefully more will now be able to focus on this once the Hermes DDI setting modifications encompassed by my patch become ubiquitous.
Attached Files
File Type: cab ATIFix.cab (5.3 KB, 7218 views)
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth



Last edited by Sleuth255; 15th March 2007 at 03:02 PM..
Reply With Quote
Sponsored Links

  #2  
Old 14th March 2007, 02:10 PM
faria's Avatar
faria faria is offline
Moderator
 
Join Date: Feb 2006
Location: uk
Posts: 1,827
Default

i see you been busy to! thanks man.
__________________
CURRENT DEVICE
HTC TOUCH-PRO 2
RETIRED DEVICES
BLUEANGEL
HTC WIZARD
HTC HERMES
BACKUP DEVICE
SIEMENS S55
rhodium rom dev stage @ testing...

Reply With Quote

  #3  
Old 14th March 2007, 02:42 PM
kyphur's Avatar
kyphur kyphur is offline
Moderator
 
Join Date: Dec 2005
Location: Chicagoland
Posts: 2,409
Cool

Thanks Sleuth,

WMXL v0.30 will incorporate this fix.
__________________
iPhone (3G *2, 2G *1) - USA - at&t - After 2 Fuzes let me down!
Tilt (2) - USA - at&t - At&t Stock WM 6.1/SPL 3.28.Hard
Don't like my reply? read this
What is XDA-Devs
XDA-Devs Posting Rules
Donate to XDA-Developers
Reply With Quote

  #4  
Old 14th March 2007, 02:50 PM
Heimiko Heimiko is offline
Member
 
Join Date: Mar 2005
Location: Hilversum
Posts: 89
Default

Just tried, works perfectly! thanks!
(installed on WMXL.1)
Reply With Quote

  #5  
Old 14th March 2007, 02:52 PM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Default

Nice to hear Your post reminds me of something else:

Those of you running WMXL .2 already have the driver portion of the fix baked in. Installing this patch will give you full functionality.
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth


Reply With Quote

  #6  
Old 14th March 2007, 02:59 PM
Heimiko Heimiko is offline
Member
 
Join Date: Mar 2005
Location: Hilversum
Posts: 89
Default

Quote:
Originally Posted by Sleuth255 View Post
Those of you running WMXL .2 already have the driver portion of the fix baked in. Installing this patch will give you full functionality.
since this patch also appears to be working with the older set of ATI DLL's, what's the "full functionality" what you're talking about? what functions are missing now? I didn't really see any differences playing with TCPMP with AKU3.3 and now with this patch on WM6.......
Reply With Quote

  #7  
Old 14th March 2007, 03:16 PM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Default

I experienced intermittent crashes on AKU2.3 when running full screen video if the driver wasn't set to remain active. This problem didn't crop up in my WM6 build that had the new drivers.

The problem appeared to be completely resolved in TCPMP/CorePlayer by simply checking all the boxes in the ATI IMAGEON setup screen however.

However, being a purist, I like to see the config file along with its matching driver running.
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth


Reply With Quote

  #8  
Old 14th March 2007, 04:32 PM
mikechannon's Avatar
mikechannon mikechannon is offline
Moderator
 
Join Date: Sep 2006
Location: Aberdeen
Posts: 2,891
Default

Lovely Jubbly! and Sleuth, thank you for all your time and hard work with this

Mike
__________________
Craigellachie Aberlour Dufftown Speyside Mike
Channon
Reply With Quote

  #9  
Old 14th March 2007, 06:04 PM
mrvanx's Avatar
mrvanx mrvanx is offline
Moderator
 
Join Date: Aug 2006
Location: York
Posts: 2,696
Default

WMXL extras updated sir. Bloody brilliant work!!
__________________
HTC Touch Pro (Raphael) HT832xxx HTC__001 - Radio: 1.12.25.19 | ROM: elite RC5 α (eliteII) | SPL: 1.90.OliNex
HTC Tytn (Hermes) HT628xxx SuperCID - Radio: 1.56.70.10 | ROM: Testing Various | SPL: 2.10.Olipro


Reply With Quote

  #10  
Old 14th March 2007, 08:54 PM
puerrican85's Avatar
puerrican85 puerrican85 is offline
Member
 
Join Date: May 2006
Posts: 66
Smile

Quote:
Originally Posted by Heimiko View Post
since this patch also appears to be working with the older set of ATI DLL's, what's the "full functionality" what you're talking about? what functions are missing now? I didn't really see any differences playing with TCPMP with AKU3.3 and now with this patch on WM6.......
Same here but as Sleuth said it was more for fixing crashes in a sense, my cingular device running a wm5 rom without the new drivers now don't crash when using this patch, though ofcourse I still get garbled boxes when playing divx files when I enable acceleration, while x.264 plays perfect when set up right with or without acceleration enabled.

My softbank tytn running xdalive .20 runs good as well as before my device froze at times when using ati video with and without acceleration enabled playing fullscreen. I get a good 20% increase now being able to use it compared to DirectDraw. Thanks for the fix

Last edited by puerrican85; 14th March 2007 at 09:10 PM..
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.