#
#asahi-gpu · 2022-10-02 14:26
linahttps://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L693
#asahi-gpu · 2022-10-02 14:26
linaEveryone knows Intel GPUs are the best and most perfect GPUs ^^
#asahi-gpu · 2022-10-02 14:26
karolherbstthough implementing geometry shaders sounds like pain on agx?
#asahi-gpu · 2022-10-02 14:25
karolherbstprobably makes sense to some degree being more flexible here as you know input/outputs are just memory anyway
#asahi-gpu · 2022-10-02 14:25
alyssaeven relative to powervr
#asahi-gpu · 2022-10-02 14:25
karolherbstyeah.. I've heard
#asahi-gpu · 2022-10-02 14:25
alyssaalthough it's unique in how much it does on the shader cores and how little fixed function hardware it has
#asahi-gpu · 2022-10-02 14:24
alyssaAGX is a bog standard tiler
#asahi-gpu · 2022-10-02 14:24
karolherbstthough my hope is to get to know more about other hardware with my CL work
#asahi-gpu · 2022-10-02 14:22
karolherbstdid he
#asahi-gpu · 2022-10-02 14:22
alyssaas far as gripes I have with AGX, this is not one
#asahi-gpu · 2022-10-02 14:22
karolherbst:D
#asahi-gpu · 2022-10-02 14:22
alyssayes, NVIDIA's hardware is the most perfect thing in the universe, everything else pales in comparison, we all know, jekstrand won't stop talking about it :-p
#asahi-gpu · 2022-10-02 14:22
karolherbstyeah.. probably
#asahi-gpu · 2022-10-02 14:21
karolherbstat least for vulkan and compute
#asahi-gpu · 2022-10-02 14:21
linaI'm just saying this isn't a big deal in the grand scheme of things, as far as hardware differences go
#asahi-gpu · 2022-10-02 14:21
karolherbstnvidia does all of its submission in userspace even
#asahi-gpu · 2022-10-02 14:21
linaYes, this is funny hardware ^^
#asahi-gpu · 2022-10-02 14:21
karolherbstright, not saying they are fundamentally different, just some hardware doens't need anything to be configured on the kernel side for things to run
#asahi-gpu · 2022-10-02 14:20
linaBut the command buffers themselves are going to be full of fields telling the hardware what to do... what's the difference between the kernel rejecting your command buffer and the hardware bugging out? Both indicate the driver did the wrong thing and allowed something to go through that isn't allowed.
#asahi-gpu · 2022-10-02 14:19
karolherbstbut yes, we have to make sure in userspace to not cause the context to crash, but that's something the kernel isn't involved with
#asahi-gpu · 2022-10-02 14:19
karolherbstit's literally just memory
#asahi-gpu · 2022-10-02 14:19
karolherbstthere is no metadata attached when doing submissions
#asahi-gpu · 2022-10-02 14:19
linaNo difference to this ^^
#asahi-gpu · 2022-10-02 14:19
karolherbstthe only reason the kernel rejects is if the context crashes or we run out of memory
#asahi-gpu · 2022-10-02 14:19
linaYeah but I'm sure you have hardware limits that cannot be exceeded for correct output, right?
#asahi-gpu · 2022-10-02 14:18
karolherbstwe don't have that in nvidia
#asahi-gpu · 2022-10-02 14:18
linaThat's a bug in mesa
#asahi-gpu · 2022-10-02 14:18
karolherbstI just never had to deal with those problems myself :D
#asahi-gpu · 2022-10-02 14:18
linaI mean you need to make sure everything submitted is correct anyway, you wouldn't want to feed the kernel something it rejects at any point
#asahi-gpu · 2022-10-02 14:18
karolherbstyeah
#asahi-gpu · 2022-10-02 14:18
karolherbstand make sure each batch is correct while recording
#asahi-gpu · 2022-10-02 14:18
linaSure, but that's life for tiled architectures...
#asahi-gpu · 2022-10-02 14:17
karolherbstyeah... just means that you will have to do multiple submissions when submitting a vulkan cmd buffer
#asahi-gpu · 2022-10-02 14:17
linaYou can do as many render passes to as many separate sets of render targets as you want in AGX, each one just has to be a separate job submission
#asahi-gpu · 2022-10-02 14:16
karolherbstright.. hardware limitations exist and those are usually exposed in vulkan as limits
#asahi-gpu · 2022-10-02 14:16
linaRight?
#asahi-gpu · 2022-10-02 14:16
linaOf the same dimensions
#asahi-gpu · 2022-10-02 14:16
karolherbstwe do have more virtual limits, like the amount of bos allowed to use in a submission, but that's pretty much it
#asahi-gpu · 2022-10-02 14:16
linaAs in MRT
#asahi-gpu · 2022-10-02 14:16
linaYes, but there is a max # of *simultaneous* render targets
#asahi-gpu · 2022-10-02 14:16
karolherbstswitching render targets is just a command
#asahi-gpu · 2022-10-02 14:15
linaApple lists those limits in a big PDF somewhere
#asahi-gpu · 2022-10-02 14:15
karolherbstnvidia doesn't because it's all done in the command buffer
#asahi-gpu · 2022-10-02 14:15
karolherbstwell... depends
#asahi-gpu · 2022-10-02 14:15
linaI don't think this is special
#asahi-gpu · 2022-10-02 14:15
linaEvery GPU has a max # of render targets, right?
#asahi-gpu · 2022-10-02 14:15
karolherbstright
#asahi-gpu · 2022-10-02 14:15
linaYeah but userspace will know about the max ahead of time
#asahi-gpu · 2022-10-02 14:15
karolherbsteither you split it up or something else

plus ›