[Bug 66932] Screen corruption on Cayman with dpm enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comment # 24 on bug 66932 from
(In reply to comment #22)
> (In reply to comment #18)
> > Created attachment 82559 [details] [review] [review] [review]
> > weird fix
> > 
> 
> Hmmm, looks like a compiler bug.  what compiler are you using?

gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-6ubuntu1) 

But I think the compiler is right in this case. struct ATOM_INIT_REG_BLOCK
doesn't represent what radeon_atom_init_mc_reg_table() is doing.

The struct in the header reads:
...
ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1];
ATOM_MEMORY_SETTING_DATA_BLOCK    asRegDataBuf[1];

So reg_block->asRegIndexBuf[i] for i>0 is not defined, its within asRegDataBuf
or even pass the size of the struct.

It looks like this gcc is killing the while loop because i can never be
anything else than zero.


You are receiving this mail because:
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux