modetest: document why no blob is created for linear gamma LUT
authorMarijn Suijten <marijn.suijten@somainline.org>
Sat, 9 Sep 2023 08:26:33 +0000 (10:26 +0200)
committerMarijn Suijten <marijn.suijten@somainline.org>
Sat, 9 Sep 2023 09:07:56 +0000 (11:07 +0200)
commit64b09cef49f9cd7e7eb9871d8fe36ed5b315149a
treefb15682bcf5ecfaf3c9beea6856c284939b2d4b8
parentb709c3010e9a39b7ed4ed63a16148d4fa0055d3f
modetest: document why no blob is created for linear gamma LUT

As found and discussed in [MR 58] a blob is not created in the else arm
because adding the GAMMA_LUT property with a NULL/0 blob_id causes it
to be reset to a default linear / pass-thru gamma table.  The values
in the gamma_lut table might still be consumed in the legacy API path
below though, so it has to be initialized to a linear table.

[MR 58]: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/58#note_466972

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
tests/modetest/modetest.c