[PATCH] radeon: avoid possible divide by 0 in surface manager

Alex Deucher alexdeucher at gmail.com
Tue Dec 24 12:18:22 PST 2013


On Tue, Dec 10, 2013 at 7:39 PM, Michel Dänzer <michel at daenzer.net> wrote:
> On Die, 2013-12-10 at 12:42 -0500, Alex Deucher wrote:
>> Some users report hitting a divide by 0 with the tile split in
>> certain apps.  Tile_split shouldn't ever be 0 unless the surface
>> structure was not properly initialized.  I think there may be some
>> cases where mesa uses an improperly initialized surface struct,
>> but I haven't had time to track it down.
>
> It would be good to know where the bogus tile split is coming from
> though — who knows what else might be wrong in that case?

Agreed.  The reporter updated the bug with the full backtrace, I just
haven't had a chance to look at it yet.
https://bugs.freedesktop.org/show_bug.cgi?id=72425

Alex

>
>
> --
> Earthling Michel Dänzer            |                  http://www.amd.com
> Libre software enthusiast          |                Mesa and X developer
>


More information about the dri-devel mailing list