[Bug 66932] Screen corruption on Cayman with dpm enabled
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 17 11:02:40 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=66932
--- Comment #23 from Martin Andersson <g02maran at gmail.com> ---
(In reply to comment #21)
> (In reply to comment #19)
> > I wasn't very clear in my #12 comment, but what I was trying to say it is
> > something fishy about "reg_block->asRegIndexBuf". It is defined in
> > atombios.h as:
> > ATOM_MEMORY_SETTING_DATA_BLOCK asRegDataBuf[1];
> >
>
> It's a variably sized array and the size varies depending on the system.
> The size of that array is defined by usRegIndexTblSize. Hence the
> calculation to determine the number of elements:
>
> num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
> sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;
ok, wasn't aware of that. My compiler is:
gcc (GCC) 4.8.1
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130717/710a2fe3/attachment-0001.html>
More information about the dri-devel
mailing list