From: Robert Foss <robert.foss@collabora.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 3/7] lib/igt_kms: Make sure that default planes aren't overwritten.
Date: Thu, 21 Apr 2016 13:31:48 -0400 [thread overview]
Message-ID: <57190E84.5070502@collabora.com> (raw)
In-Reply-To: <20160421145043.GY2510@phenom.ffwll.local>
On 04/21/2016 10:50 AM, Daniel Vetter wrote:
> On Wed, Apr 20, 2016 at 10:59:45AM -0400, robert.foss@collabora.com wrote:
>> From: Robert Foss <robert.foss@collabora.com>
>>
>> Avoid overwriting planes with statically asigned indices
>> with planes that have dynamically assigned indices.
>>
>> Signed-off-by: Robert Foss <robert.foss@collabora.com>
>> ---
>> lib/igt_kms.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
>> index 07fb73b..3f953ec 100644
>> --- a/lib/igt_kms.c
>> +++ b/lib/igt_kms.c
>> @@ -1326,6 +1326,8 @@ void igt_display_init(igt_display_t *display, int drm_fd)
>> display->has_universal_planes = 1;
>> break;
>> default:
>> + while (p == IGT_PLANE_PRIMARY || p == IGT_PLANE_CURSOR)
>> + p++;
> What we might need to do is to actually make primary and cursor
> dynamically assigned. Since with most drivers that's the case that
> happens. Otoh we have a variable number of planes on i915 too, so not
> entirely sure now what's going on here ...
> -Daniel
Since PRIMARY and CURSOR planes are statically assigned and
that the other cases in this switch statement used the static
assignments, the loop simply makes sure the we don't overwrite
the PRIMARY or CURSOR plane.
>> plane = &pipe->planes[p];
>> plane->index = p++;
>> break;
>> --
>> 2.5.0
>>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-04-21 17:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 14:59 [PATCH i-g-t 0/7] Enable kms_flip_event_leak and kms_vblank on vc4 robert.foss
2016-04-20 14:59 ` [PATCH i-g-t 1/7] lib/igt_kms: Add support for up to 10 planes per pipe robert.foss
2016-04-21 14:51 ` Daniel Vetter
2016-04-20 14:59 ` [PATCH i-g-t 2/7] lib/igt_kms: Fix plane counting in igt_display_init robert.foss
2016-04-21 9:46 ` Tomeu Vizoso
2016-04-20 14:59 ` [PATCH i-g-t 3/7] lib/igt_kms: Make sure that default planes aren't overwritten robert.foss
2016-04-21 10:51 ` Tomeu Vizoso
2016-04-21 14:50 ` Daniel Vetter
2016-04-21 17:31 ` Robert Foss [this message]
2016-04-22 12:53 ` Daniel Vetter
2016-04-22 13:23 ` Robert Foss
2016-04-20 14:59 ` [PATCH i-g-t 4/7] lib/igt_kms: Only move the in cursor plane for Intel hw robert.foss
2016-04-21 10:59 ` Tomeu Vizoso
2016-04-21 14:48 ` Daniel Vetter
2016-04-21 17:24 ` Robert Foss
2016-04-22 12:54 ` Daniel Vetter
2016-04-20 14:59 ` [PATCH i-g-t 5/7] lib/igt_kms: Switch to verbose assert robert.foss
2016-04-20 14:59 ` [PATCH i-g-t 6/7] kms_vblank: Switch from using crtc0 statically to explicitly setting mode robert.foss
2016-04-21 9:18 ` Daniel Vetter
2016-04-21 15:55 ` Daniel Vetter
2016-04-20 14:59 ` [PATCH i-g-t 7/7] kms_flip_event_leak: Enable test on DRIVER_ANY robert.foss
2016-04-21 9:19 ` Daniel Vetter
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=57190E84.5070502@collabora.com \
--to=robert.foss@collabora.com \
--cc=daniel@ffwll.ch \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.