public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Marius Vlad <marius.c.vlad@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t] lib/igt_kms: Fix atomic plane commit when fb_id is 0.
Date: Mon,  4 Apr 2016 18:47:25 +0300	[thread overview]
Message-ID: <1459784845-13517-1-git-send-email-marius.c.vlad@intel.com> (raw)

igt_atomic_prepare_plane_commit() assumes that the framebuffer is always
set-up.

Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
---
 lib/igt_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 82257a6..30c5b7e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1585,7 +1585,7 @@ igt_atomic_prepare_plane_commit(igt_plane_t *plane, igt_output_t *output,
 		igt_atomic_populate_plane_req(req, plane, IGT_PLANE_FB_ID, fb_id);
 	}
 
-	if (plane->position_changed || plane->size_changed) {
+	if ((plane->position_changed || plane->size_changed) && fb_id != 0) {
 		uint32_t src_x = IGT_FIXED(plane->fb->src_x, 0); /* src_x */
 		uint32_t src_y = IGT_FIXED(plane->fb->src_y, 0); /* src_y */
 		uint32_t src_w = IGT_FIXED(plane->fb->src_w, 0); /* src_w */
-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2016-04-04 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04 15:47 Marius Vlad [this message]
2016-04-04 15:53 ` [PATCH i-g-t] lib/igt_kms: Fix atomic plane commit when fb_id is 0 Lionel Landwerlin
2016-04-04 16:05 ` Ville Syrjälä
2016-04-05  8:46 ` Maarten Lankhorst
2016-04-05 10:29   ` Marius Vlad
2016-04-05 10:58     ` Maarten Lankhorst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459784845-13517-1-git-send-email-marius.c.vlad@intel.com \
    --to=marius.c.vlad@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox