All of lore.kernel.org
 help / color / mirror / Atom feed
* libdrm amdgpu semaphores questions
@ 2016-12-01  2:12 Dave Airlie
       [not found] ` <CAPM=9twrphvnNx99H4r3ROaNaKMKj7uwuii_1Ph57Vv7Z-aFSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Airlie @ 2016-12-01  2:12 UTC (permalink / raw)
  To: amd-gfx mailing list

Hey all,

So I've started adding semaphore support to radv but I'm not really
sure what the API to the semaphore code is.

the Vulkan API is you get a command submission of a number of submit
units which have a 0-n wait semaphore, 0-n command buffers and 0-n
signal semaphores.

Now I'm not sure how I should use the APIs with those.

My first attempt is

call amdgpu_cs_wait_semaphore on all the wait ones, call the cs submit
API, then call the amdgpu_cs_signal_semaphore on all the signal ones?

or should I be up front calling wait/signal then submitting the command streams?

Also upcoming work requires possibly sharing semaphores between
processes, is there any indication how this might be made work with
the libdrm_amdgpu semaphore implementation?

Thanks,
Dave.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-12-02  8:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01  2:12 libdrm amdgpu semaphores questions Dave Airlie
     [not found] ` <CAPM=9twrphvnNx99H4r3ROaNaKMKj7uwuii_1Ph57Vv7Z-aFSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-01  2:36   ` Mao, David
     [not found]     ` <420B93AA-EBE2-4DB4-B0D0-AE574AEFA22B-5C7GfCeVMHo@public.gmane.org>
2016-12-01  5:17       ` zhoucm1
     [not found]         ` <583FB287.5050602-5C7GfCeVMHo@public.gmane.org>
2016-12-01  5:44           ` Dave Airlie
     [not found]             ` <CAPM=9tz2Qv0DXp-Tpfb38b81G1Gbs0MyM4KvUcvj5m+sp3dhoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-01  6:11               ` zhoucm1
     [not found]                 ` <583FBF14.8000506-5C7GfCeVMHo@public.gmane.org>
2016-12-01  9:53                   ` Christian König
2016-12-01 17:14                   ` Emil Velikov
2016-12-01 19:44                   ` Dave Airlie
     [not found]                     ` <CAPM=9twcZ3eJ4+4ZDr29UGm0Bo7qAYyNdmGSNHqL+G7n7D=7fQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-02  1:41                       ` zhoucm1
     [not found]                         ` <5840D131.7090207-5C7GfCeVMHo@public.gmane.org>
2016-12-02  8:44                           ` Christian König

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.