From: Alyssa Rosenzweig <alyssa@rosenzweig.io>
To: Ayan Halder <Ayan.Halder@arm.com>
Cc: "lima@lists.freedesktop.org" <lima@lists.freedesktop.org>,
Maxime Ripard <maxime.ripard@bootlin.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
David Airlie <airlied@linux.ie>, Qiang Yu <yuq825@gmail.com>,
nd <nd@arm.com>, Sean Paul <sean@poorly.run>
Subject: Re: [PATCH v2] drm/fourcc: add ARM GPU tile format
Date: Mon, 11 Mar 2019 09:39:28 -0700 [thread overview]
Message-ID: <20190311163928.GA1412@kevin> (raw)
In-Reply-To: <20190311160009.GA11281@arm.com>
[-- Attachment #1.1: Type: text/plain, Size: 1383 bytes --]
> You might want to re-use the exisiting modifier
> AFBC_FORMAT_MOD_BLOCK_SIZE_16x16.
>
> I would suggest you to have a look at the exisiting AFBC modifiers
> (denoted by AFBC_FORMAT_MOD_XXX ) and let us know if there is
> something you cannot reuse.
So, the "tiled" format in question (that Qiang needs to import/export
BOs in) is *uncompressed* but tiled with an Arm-internal format (for the
GPUs). Here's a software implementation for encoding this format:
https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/panfrost/pan_swizzle.c
For Midgard/Bifrost, we use this tiling internally for uploading bitmap
textures, but we only render to AFBC (or linear). So for Panfrost, we'll
always be importing/exporting AFBC buffers, never uncompressed tiled.
But Utgard does not seem to support AFBC (?), so Qiang needs the
uncompressed tiled for the same purpose Panfrost uses AFBC.
Is it possible that this is the same tiling used internally by
AFBC_FORMAT_MOD_BLOCK_SIZE_16x16, only without any compression? AFBC is
blackbox for us, so this isn't something we can figure out ourselves,
but that influences whether it's appropriate to reuse the modifier. If
this is the same tiling scheme, perhaps that's the answer. If it's not
(I don't know how AFBC tiling works), we probably do need a separate
modifier to avoid confusion.
Thanks,
Alyssa
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-03-11 16:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-09 14:09 [PATCH v2] drm/fourcc: add ARM GPU tile format Qiang Yu
2019-03-10 2:08 ` Alyssa Rosenzweig
2019-03-10 2:35 ` Qiang Yu
2019-03-10 2:53 ` Alyssa Rosenzweig
2019-03-10 3:01 ` Qiang Yu
2019-03-10 3:04 ` Alyssa Rosenzweig
2019-03-11 16:00 ` Ayan Halder
2019-03-11 16:39 ` Alyssa Rosenzweig [this message]
2019-03-12 1:50 ` Qiang Yu
2019-03-12 15:41 ` Ayan Halder
2019-03-13 13:16 ` Qiang Yu
2019-03-14 22:58 ` Alyssa Rosenzweig
2019-03-14 22:54 ` Alyssa Rosenzweig
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=20190311163928.GA1412@kevin \
--to=alyssa@rosenzweig.io \
--cc=Ayan.Halder@arm.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=lima@lists.freedesktop.org \
--cc=maxime.ripard@bootlin.com \
--cc=nd@arm.com \
--cc=sean@poorly.run \
--cc=yuq825@gmail.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.