From: Praveen Paneri <praveen.paneri@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org, paulo.r.zanoni@intel.com
Subject: Re: [PATCH 1/7] lib/igt_fb: Let others use igt_get_fb_tile_size
Date: Tue, 21 Mar 2017 13:50:42 +0530 [thread overview]
Message-ID: <58D0E25A.2030302@intel.com> (raw)
In-Reply-To: <20170320094817.uke76i7733hq3irg@phenom.ffwll.local>
On Monday 20 March 2017 03:18 PM, Daniel Vetter wrote:
> On Sat, Mar 18, 2017 at 12:45:20AM +0530, Praveen Paneri wrote:
>> This function can be used by igt_draw to get accurate
>> tile dimensions for all tile formats.
>>
>> Signed-off-by: Praveen Paneri <praveen.paneri@intel.com>
>> ---
>> lib/igt_fb.c | 2 +-
>> lib/igt_fb.h | 3 ++-
>> 2 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
>> index d2b7e9e..6ecc36b 100644
>> --- a/lib/igt_fb.c
>> +++ b/lib/igt_fb.c
>> @@ -74,7 +74,7 @@ static struct format_desc_struct {
>> #define for_each_format(f) \
>> for (f = format_desc; f - format_desc < ARRAY_SIZE(format_desc); f++)
>>
>> -static void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp,
>> +void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp,
>> unsigned *width_ret, unsigned *height_ret)
>
> Documentation seems missing here.
> -Daniel
Sure. I will add it.
Thanks
Praveen
>
>> {
>> switch (tiling) {
>> diff --git a/lib/igt_fb.h b/lib/igt_fb.h
>> index 4a680ce..b178eba 100644
>> --- a/lib/igt_fb.h
>> +++ b/lib/igt_fb.h
>> @@ -94,7 +94,8 @@ enum igt_text_align {
>> align_vcenter = 0x04,
>> align_hcenter = 0x08,
>> };
>> -
>> +void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp,
>> + unsigned *width_ret, unsigned *height_ret);
>> void igt_calc_fb_size(int fd, int width, int height, int bpp, uint64_t tiling,
>> unsigned *size_ret, unsigned *stride_ret);
>> unsigned int
>> --
>> 2.7.4
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-03-21 8:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 19:15 [PATCH 0/7] Add Y-tiling support into IGTs Praveen Paneri
2017-03-17 19:15 ` [PATCH 1/7] lib/igt_fb: Let others use igt_get_fb_tile_size Praveen Paneri
2017-03-20 9:48 ` Daniel Vetter
2017-03-21 8:20 ` Praveen Paneri [this message]
2017-03-17 19:15 ` [PATCH 2/7] lib/igt_fb: Add helper function for tile_to_mod Praveen Paneri
2017-03-17 19:15 ` [PATCH 3/7] lib/igt_draw: Add Y-tiling support Praveen Paneri
2017-03-17 19:15 ` [PATCH 4/7] lib/igt_draw: Add Y-tiling support for IGT_DRAW_BLT method Praveen Paneri
2017-04-26 14:06 ` Paulo Zanoni
2017-03-17 19:15 ` [PATCH 5/7] tests/kms_draw_crc: add support for Y tiling Praveen Paneri
2017-03-17 19:15 ` [PATCH 6/7] igt/kms_frontbuffer_tracking: Add Y-tiling support Praveen Paneri
2017-04-26 14:02 ` Paulo Zanoni
2017-03-17 19:15 ` [PATCH 7/7] igt/kms_fbc_crc.c : Add Y-tile tests Praveen Paneri
2017-04-26 13:46 ` [PATCH 0/7] Add Y-tiling support into IGTs Paulo Zanoni
2017-04-26 14:51 ` Paulo Zanoni
2017-04-27 12:31 ` Praveen Paneri
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=58D0E25A.2030302@intel.com \
--to=praveen.paneri@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@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 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.