[argyllcms] CGGetDisplayTransferByTable number of entries mismatches screen depth

Hi,

I'm trying to get Argyll to work on a Linux x86_64 with an ATI FireMV 2200
video card connected to an LCD monitor using DTP94 colorimeter.

I tracked the problem down to the following line in spectro/dispwin.c:

        if (nent != (1 << p->pdepth)) {

on my system nent is 256, but p->pdepth is only 6.

I think this is because radeon drivers don't support 32 bit mode, but use 24
bit mode instead:
    red, green, blue masks:    0xf800, 0x7e0, 0x1f
    significant bits in color specification:    6 bits

So... how do I fix this? :)
Also, if I switch to 16 bit mode, it might work, but will a profile
generated in such way be accurate when I switch back to 24 bit mode?

Thanks!

-- 
Have fun,                                      "I tried to no avail
Michael "mag" Grigoriev           To keep my eyes from growing pale
mag@xxxxxxxxxxx                         But my vision came too late
http://www.luminal.org               And my belief started to abate"

Other related posts: