dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libdrm] modetest: call drmModeCrtcSetGamma() only if add_property_optional returns true
@ 2020-02-25  9:38 Rohit Visavalia
  2020-02-27  8:40 ` Rohit Visavalia
  0 siblings, 1 reply; 9+ messages in thread
From: Rohit Visavalia @ 2020-02-25  9:38 UTC (permalink / raw)
  To: dri-devel; +Cc: rsk, dshah, devarsh.thakkar, varunkum, Rohit Visavalia

gamma is a optional property then also it prints error message, so
set gamma only if add_property_optional() returns true.

Signed-off-by: Rohit Visavalia <rohit.visavalia@xilinx.com>
---
 tests/modetest/modetest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index b907ab3..379b9ea 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -1138,7 +1138,7 @@ static void set_gamma(struct device *dev, unsigned crtc_id, unsigned fourcc)

        add_property_optional(dev, crtc_id, "DEGAMMA_LUT", 0);
        add_property_optional(dev, crtc_id, "CTM", 0);
-       if (!add_property_optional(dev, crtc_id, "GAMMA_LUT", blob_id)) {
+       if (add_property_optional(dev, crtc_id, "GAMMA_LUT", blob_id)) {
                uint16_t r[256], g[256], b[256];

                for (i = 0; i < 256; i++) {
--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-23  8:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25  9:38 [PATCH libdrm] modetest: call drmModeCrtcSetGamma() only if add_property_optional returns true Rohit Visavalia
2020-02-27  8:40 ` Rohit Visavalia
2020-03-03 13:11   ` Devarsh Thakkar
2020-03-03 13:38     ` Ilia Mirkin
2020-03-12  6:39       ` Rohit Visavalia
2020-03-12 10:18         ` Ilia Mirkin
2020-03-13 10:08           ` Rohit Visavalia
2020-03-13 14:46             ` Ilia Mirkin
2020-03-23  4:25               ` Rohit Visavalia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).