All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicolai Hähnle" <nhaehnle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Christian König"
	<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
	"Bas Nieuwenhuizen"
	<bas-dldO88ZXqoXqqjsSq9zF6IRWq/SkRNHw@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	"Bridgman, John" <John.Bridgman-5C7GfCeVMHo@public.gmane.org>
Subject: Re: PRT support for amdgpu
Date: Wed, 1 Feb 2017 13:19:08 +0100	[thread overview]
Message-ID: <074192ef-19c9-cdea-a910-90a531fa7ed6@gmail.com> (raw)
In-Reply-To: <ba418c16-e2ca-ddff-4147-387e5b7a2d14-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>

On 31.01.2017 17:28, Christian König wrote:
> Am 31.01.2017 um 14:06 schrieb Bas Nieuwenhuizen:
>> So this API seems usable, and I think this is something we can use for
>> radv. However, I'm not sure how much time it takes for us to implement,
>> as the TFE variants are not in LLVM yet and I haven't figured out what
>> values the NACKs get.
>
> Actually this is also useful without the special NACK handling. E.g.
> when you sample from a texture part which isn't present you always get
> zero and writes are ignored.
>
> The TFE bit and the extra signaling to for special handling in shader
> code are only optional if I'm not completely mistaken.

I think it's needed for ARB_sparse_texture2 / whatever the Vulkan 
equivalent of that is. But yeah, I don't think ARB_sparse_texture needs 
TFE support in LLVM.


>> Furthermore, if addrlib is missing stuff like Nicolai suggests then that
>> could result in complications. I can try if I can get something working
>> over the weekend, but no promises.
>
> Not sure what concern Nicolai has about addrlib here. In general we
> should know where the different parts of a texture start (LODs, layers
> etc...) and as far as I can see that's all you need to know.

Well, you're right that it's probably possible to work with the open 
addrlib already.

In particular, you need address info not just for layers and levels, but 
also for blocks within each 2D image, to be able to compute 
VIRTUAL_PAGE_SIZE_X/Y, and to map them to the corresponding addresses.

There are AddrComputeSurfaceAddrFromCoord and 
AddrComputeSurfaceCoordFromAddr functions that can be tricked into 
providing the necessary info.

It may be more natural with some additional functions that aren't open yet.

Also, you might possibly want different tilings for sparse textures, but 
I don't think that's really needed for an initial implementation.

Cheers,
Nicolai


>> As far as an unit test being sufficient, I assume you mean as open
>> source user for inclusion into the kernel?
>
> Yes.
>
>> I think that'd be a question
>> answered better by Dave.
>
> Yeah, though so as well. Dave can you comment?
>
> Thanks for the comments,
> Christian.
>
>>
>>> Best regards,
>>> Christian.
>>>
>>> _______________________________________________
>>> amd-gfx mailing list
>>> amd-gfx@lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-02-01 12:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 12:57 PRT support for amdgpu Christian König
     [not found] ` <1485781060-1910-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-01-30 12:57   ` [PATCH 1/6] drm/amdgpu: add support for BO_VAs without BO Christian König
     [not found]     ` <1485781060-1910-2-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-01-30 14:43       ` Nicolai Hähnle
     [not found]         ` <51ab062e-733b-bde8-ed41-c14fda72519a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-02 10:26           ` Christian König
     [not found]             ` <f3cd0c09-3d57-84e8-b7e4-6fc3dded5974-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-02 12:27               ` Nicolai Hähnle
2017-01-30 12:57   ` [PATCH 2/6] drm/amdgpu: add basic PRT support Christian König
2017-01-30 12:57   ` [PATCH 3/6] drm/amdgpu: IOCTL interface for PRT support v3 Christian König
2017-01-30 12:57   ` [PATCH 4/6] drm/amdgpu: implement PRT for GFX6 Christian König
     [not found]     ` <1485781060-1910-5-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-01-30 13:59       ` StDenis, Tom
     [not found]         ` <CY4PR12MB1768231152C68AFABF76535AF74B0-rpdhrqHFk06yjjPBNVDk/QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-30 14:14           ` Christian König
     [not found]             ` <fc54cc73-6b75-59b3-f67a-9a395d749e23-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-01-30 14:15               ` StDenis, Tom
     [not found]                 ` <CY4PR12MB1768D597CD5AA969E892F02FF74B0-rpdhrqHFk06yjjPBNVDk/QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-30 14:26                   ` Christian König
2017-01-30 12:57   ` [PATCH 5/6] drm/amdgpu: implement PRT for GFX7 Christian König
2017-01-30 12:57   ` [PATCH 6/6] drm/amdgpu: implement PRT for GFX8 Christian König
2017-01-30 14:55   ` PRT support for amdgpu Nicolai Hähnle
2017-01-31 13:06   ` Bas Nieuwenhuizen
     [not found]     ` <1485867969.839629.865389344.09B29312-2RFepEojUI2N1INw9kWLP6GC3tUn3ZHUQQ4Iyu8u01E@public.gmane.org>
2017-01-31 16:28       ` Christian König
     [not found]         ` <ba418c16-e2ca-ddff-4147-387e5b7a2d14-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-01 12:19           ` Nicolai Hähnle [this message]
2017-02-02  1:49           ` Dave Airlie
     [not found]             ` <CAPM=9tzUNgK5MHVBaMzVsn-z=Pn-nSBFTswUcGc+zttbYLE7FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-02  9:18               ` Nicolai Hähnle
     [not found]                 ` <720067e3-c786-0af0-aec6-dfd1f41db378-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-02  9:29                   ` Bas Nieuwenhuizen
     [not found]                     ` <1486027743.694234.867769672.09921E90-2RFepEojUI2N1INw9kWLP6GC3tUn3ZHUQQ4Iyu8u01E@public.gmane.org>
2017-02-02  9:33                       ` Nicolai Hähnle
     [not found]                         ` <0ace8731-3737-a88d-807c-f30d7be9070e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-02  9:41                           ` Christian König
2017-01-31 16:09   ` Alex Deucher
     [not found]     ` <CADnq5_P1qAznmzCaYahL0ud=HhCR+8BD3RUVEpm32nZx-STVmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-31 16:42       ` Christian König

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=074192ef-19c9-cdea-a910-90a531fa7ed6@gmail.com \
    --to=nhaehnle-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=John.Bridgman-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=bas-dldO88ZXqoXqqjsSq9zF6IRWq/SkRNHw@public.gmane.org \
    --cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.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.