From: Imre Deak <imre.deak@intel.com>
To: Damien Lespiau <damien.lespiau@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Sagar Kamble <sagar.a.kamble@intel.com>
Subject: Re: [PATCH 1/3] drm/i915: Don't set mode_config's cursor size
Date: Tue, 25 Mar 2014 17:11:17 +0200 [thread overview]
Message-ID: <1395760277.3271.1.camel@intelbox> (raw)
In-Reply-To: <1395758972-31316-2-git-send-email-damien.lespiau@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --]
On Tue, 2014-03-25 at 14:49 +0000, Damien Lespiau wrote:
> Those fields are supposed to be a good default value for the cursor
> size, intended for the case where the hardware doesn't support 64x64
> cursors, for use with a hw agnostic DDX driver for instance.
>
> We're fine with 64x64 cursors though and don't need to set those fields
> (DRM core will return 64 is we don't). If we declare 256x256, that
> generic driver will use a big buffer for the cursor, without any good
> reason.
>
> Cc: Sagar Kamble <sagar.a.kamble@intel.com>
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 80dd1c2..7a47657 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -10557,8 +10557,6 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
> intel_crtc->max_cursor_width = CURSOR_WIDTH;
> intel_crtc->max_cursor_height = CURSOR_HEIGHT;
> }
> - dev->mode_config.cursor_width = intel_crtc->max_cursor_width;
> - dev->mode_config.cursor_height = intel_crtc->max_cursor_height;
I thought drm_getcap should return the max cursor size, using these two
fields.
--Imre
>
> drm_mode_crtc_set_gamma_size(&intel_crtc->base, 256);
> for (i = 0; i < 256; i++) {
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-03-25 15:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 14:49 [PATCH 0/3] A few cursor fixups after the multi-size patches Damien Lespiau
2014-03-25 14:49 ` [PATCH 1/3] drm/i915: Don't set mode_config's cursor size Damien Lespiau
2014-03-25 14:54 ` Chris Wilson
2014-03-25 14:59 ` Damien Lespiau
2014-03-25 15:09 ` Chris Wilson
2014-03-25 16:05 ` Damien Lespiau
2014-03-25 16:38 ` Chris Wilson
2014-03-25 16:57 ` Damien Lespiau
2014-03-25 18:23 ` Daniel Vetter
2014-03-25 18:25 ` Daniel Vetter
2014-03-25 18:51 ` Damien Lespiau
2014-03-25 19:42 ` Daniel Vetter
2014-03-25 17:58 ` Damien Lespiau
2014-03-25 15:15 ` Sagar Arun Kamble
2014-03-25 15:11 ` Imre Deak [this message]
2014-03-25 14:49 ` [PATCH 2/3] drm/i915: Remove max_cursor_{width, height} from the crtc Damien Lespiau
2014-03-25 14:49 ` [PATCH 3/3] drm/i915: Use the actual cursor width for WM computation Damien Lespiau
2014-03-26 12:24 ` Chris Wilson
2014-03-26 12:27 ` Chris Wilson
2014-03-26 12:38 ` [PATCH 1/2] drm/i915: Compute WM for current cursor size Chris Wilson
2014-03-26 12:38 ` [PATCH 2/2] drm/i915: Recompute WM when the cursor size changes Chris Wilson
2014-03-26 12:53 ` Daniel Vetter
2014-03-26 15:21 ` Damien Lespiau
2014-03-26 16:35 ` Daniel Vetter
2014-03-26 15:21 ` [PATCH 1/2] drm/i915: Compute WM for current cursor size Damien Lespiau
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=1395760277.3271.1.camel@intelbox \
--to=imre.deak@intel.com \
--cc=damien.lespiau@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=sagar.a.kamble@intel.com \
/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