04:10 fdobridge: <g​fxstrand> Ugh... Something is wrong with the shared synchronization test
04:11 fdobridge: <g​fxstrand> They're faulting but only some of the time, meaning we're either not filling out descriptor sets properly (seems unlikely) or something is failing to bind. 😕
04:11 fdobridge: <a​irlied> gimme some test names?
04:19 fdobridge: <g​fxstrand> `dEQP-VK.synchronization.signal_order.shared_binary_semaphore.*_opaque_fd`
04:20 fdobridge: <g​fxstrand> `dEQP-VK.synchronization.signal_order.shared_binary_semaphore.write_ssbo*opaque_fd` (edited)
04:21 fdobridge: <g​fxstrand> That'll crash within the first few.
04:21 fdobridge: <g​fxstrand> It's not always the first test but it'll crash quick
04:24 fdobridge: <a​irlied> oh I get a gpu trap and warp errors and stuff
04:24 fdobridge: <g​fxstrand> Yup
04:25 fdobridge: <a​irlied> fifo: fault 00 [VIRT_READ] at 0000007ffffb1000 engine 40 [gr] client 00 [GPC1/T1_0] reason 02 [PTE] on channel 5 [01ff5b3000 deqp-vk[48865]]
04:25 fdobridge: <a​irlied> will take a closer look when I get a minute
04:25 fdobridge: <a​irlied> nearly finished a piglit single thread run with zink
04:32 fdobridge: <g​fxstrand> The weird thing is... I don't know where 0x7ffffb1000 is coming from
04:35 fdobridge: <g​fxstrand> It's not an SSBO binding or a vertex buffer or a shader
04:38 fdobridge: <a​irlied> I see it the vm debug trace
04:39 fdobridge: <a​irlied> Maybe should add some names :-p
04:46 fdobridge: <g​fxstrand> Hrm... It's the descriptor pool
04:46 fdobridge: <g​fxstrand> Why would it be faulting trying to read the descriptor set
04:47 fdobridge: <g​fxstrand> That seems very odd indeed
04:48 fdobridge: <g​fxstrand> Someone's not waiting for the GPU to be idle I think
04:52 fdobridge: <a​irlied> Yeah sounds like the object is freed before finished with
04:53 fdobridge: <g​fxstrand> Yeah, except either GDB is lying to me or it's idling both devices before freeing anything
04:58 fdobridge: <g​fxstrand> Actually...
04:58 fdobridge: <g​fxstrand> These tests are bogus
04:58 fdobridge: <g​fxstrand> *sigh*
04:59 fdobridge: <g​fxstrand> maybe not
05:01 fdobridge: <g​fxstrand> Yeah, there's a test bug. *sigh*
05:01 fdobridge: <g​fxstrand> But the test bug is just what's causing the fault
05:02 fdobridge: <g​fxstrand> cross-queue sync is broken somehow and that's causing the fails
05:08 fdobridge: <g​fxstrand> Here's a CTS patch:
05:08 fdobridge: <g​fxstrand> https://cdn.discordapp.com/attachments/1034184951790305330/1137975652142821446/message.txt
05:09 fdobridge: <g​fxstrand> I'll submit it tomorrow
05:09 fdobridge: <g​fxstrand> That gets rid of the faults but we still have fails
05:32 fdobridge: <g​fxstrand> Given that we WFI for every pipeline barrier, I suspect something's wrong with cross-device synchronization.
05:38 fdobridge: <g​fxstrand> I'm fact I'm sure there's something wrong with synchronization because the tests do wait on the receiving device and, if sync were working properly, waiting on the receiving device would implicitly wait on the sending device and we wouldn't be faulting.
05:52 fdobridge: <a​irlied> [28376/28376] skip: 1867, pass: 25530, warn: 11, fail: 373, crash: 594 /
05:58 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> How much tests does synchronization2 add? :frog_gears:
06:02 fdobridge: <a​irlied> okay one low hanging fix from the piglit run in an mr
06:22 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> And it got merged before the mesamatrix change :gears:
06:33 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> `ERROR: unknown nir_intrinsic_op terminate` 🤔
08:16 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Why is vulkaninfo not recognizing the NVK ID?: `driverID = UNKNOWN_VkDriverId_value24`
08:19 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> I forgot I had an outdated vulkaninfo version 🍩
08:28 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> 🏴󠁧󠁢󠁳󠁣󠁴󠁿
08:28 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> https://cdn.discordapp.com/attachments/1034184951790305330/1138025810389893130/Screenshot_20230807_112738.png
08:41 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> I wonder if the missing graphics are because of missing EXT_attachment_feedback_loop_layout extension 🤔
09:20 fdobridge: <a​irlied> possibly those memory model warnings are meaningful
09:45 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Are nir_intrinsic_discard and nir_intrinsic_terminate different? 🐸
13:16 fdobridge: <g​fxstrand> Yes
13:17 fdobridge: <g​fxstrand> This patch got rid of most of my weird spurrious fails that seemed to be caused by tests faulting at the same time destroying nearby contexts.
13:18 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> So treating them the same in codegen is wrong, right? :triangle_nvk:
13:25 fdobridge: <g​fxstrand> @airlied https://gerrit.khronos.org/c/vk-gl-cts/+/12450
13:27 fdobridge: <g​fxstrand> Well, discard is one of either terminate or demote. IDK which codegen does right now.
13:33 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Also gamescope is now failing in vkAllocateDescriptorSets for some reason 🤔
13:40 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Here we go again: `Pool size limit reached (offset = 512, bo_size = 216, pool_size = 648)`
15:01 fdobridge: <g​fxstrand> I don't trust our descriptor pools
15:04 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Can they be fixed?
15:04 fdobridge: <g​fxstrand> I'm sure they can
15:08 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> It's weird how gamescope didn't fail back in July 23rd 🤔
15:08 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> In that vkAllocateDescriptorSets call (I even tried downgrading gamescope with no success)
15:18 fdobridge: <g​fxstrand> Descriptor sets have changed some in the not-too-distant past
16:08 fdobridge: <g​fxstrand> July 23 seems pretty recent, though.
16:15 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> :triangle_nvk: moment 🤔
16:15 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> https://cdn.discordapp.com/attachments/1034184951790305330/1138143396708495360/message.txt
16:17 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> But anyway commit e311b24b793222f5fc458806104ce30028493ad5 is the problematic one
16:18 fdobridge: <d​adschoorse> the only thing special about gamescope's descriptor sets is an array of ycbcr samplers, otherwise it's just vulkan 101 stuff
16:27 fdobridge: <g​fxstrand> Weird... there's only one hunk in that commit that should make any difference at all and it should only affect YCbCr
16:29 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> gamescope uses YCbCr stuff so it's obviously affected by this change
16:31 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> So we have to reduce the BO size somehow or just increase the pool size 🎱
16:31 fdobridge: <g​fxstrand> Oh, I bet I know the problem, then. I don't think we took YCbCr into account in `GetDescriptorSetLayoutSupport()` or `CreateDescriptorPool()`
16:31 fdobridge: <g​fxstrand> @mohamexiety ^^
16:32 fdobridge:<m​ohamexiety> oh
16:32 fdobridge: <g​fxstrand> I don't remember what the rules around that are.
16:33 fdobridge: <m​ohamexiety> I'll take a look at it in a bit, sorry about that. I initially looked at it while doing this and thought that it would've been handled
16:33 fdobridge: <g​fxstrand> For `GetDescriptorLayoutSupport()`, it takes a full `VkDescriptorSetLayoutCreateInfo` so we just fish the details out the same way as descriptor set create.
16:33 fdobridge: <g​fxstrand> I don't remember how pools are supposed to handle it.
16:33 fdobridge: <m​ohamexiety> yeah
16:34 fdobridge: <g​fxstrand> Hrm... No, pools should be taken care of
16:34 fdobridge: <g​fxstrand> Those are handled by `VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount` which I think we properly set
16:34 fdobridge: <m​ohamexiety> yep, that's what I initially thought
16:35 fdobridge: <m​ohamexiety> so I guess the fault lies in `GetDescriptorLayoutSupport()`
16:35 fdobridge: <m​ohamexiety> I didn't touch that one at all
16:35 fdobridge: <d​adschoorse> oh, gamescope doesn't use VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount
16:35 fdobridge: <g​fxstrand> It should!
16:36 fdobridge: <m​ohamexiety> time to file a gamescope patch I guess 🐸
16:36 fdobridge: <g​fxstrand> Yeah, that just needs the same `max_plane_count` stuff.
16:36 fdobridge: <d​adschoorse> yeah I didn't know that this even exists and it's not a problem on radv
16:37 fdobridge: <m​ohamexiety> got it, will take care of that then. sorry!
16:37 fdobridge: <g​fxstrand> No worries. I missed it too. 🙃
16:37 fdobridge: <g​fxstrand> It all depends on how tight your pool allocation ends up being. 😕
16:37 fdobridge: <m​ohamexiety> RADV does set that bit correctly though. I sanity checked my changes with both RADV and ANV
16:38 fdobridge: <d​adschoorse> radv's image descriptors always have space for two planes because msaa has two planes with compression
16:39 fdobridge: <d​adschoorse> but I'm surprised that this didn't cause validation errors
16:42 fdobridge: <g​fxstrand> There isn't really a way to validate that, unfortunately.
16:44 fdobridge: <d​adschoorse> is it valid to include VkSamplerYcbcrConversionImageFormatProperties for all format queries, or is it only allowed for formats that can be used with ycbcr conversion?
16:54 fdobridge: <d​adschoorse> @asdqueerfromeu can you try <https://github.com/DadSchoorse/gamescope/tree/ycbcr-descriptor-count>?
17:08 fdobridge: <g​fxstrand> I don't see anything that implies it's illegal to include in a non-YCbCr format query. It should return 1 in that case.
20:12 fdobridge: <a​irlied> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24532 anyone want to rb that?
20:13 fdobridge: <m​ohamexiety> hm. interesting that NV reports 4000
20:13 fdobridge: <a​irlied> yeah not sure if that's some hedge against planes or somethign
20:14 fdobridge: <a​irlied> but yeah if we change to match them we should do it in both plces
20:14 fdobridge: <a​irlied> places
20:29 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> `[250162.551376] nouveau 0000:01:00.0: gr: TRAP ch 3 [00ff9cc000 gamescope[460212]]` :triangle_nvk:🪤
20:38 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> :nope_gears:
20:38 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> https://cdn.discordapp.com/attachments/1034184951790305330/1138209578752933898/Screenshot_20230807_233710.png
23:30 fdobridge: <g​fxstrand> Woo! Found a kernel bug by reading the code. 🙃
23:39 fdobridge: <a​irlied> @gfxstrand nice, is the right bug? 🙂
23:40 fdobridge: <g​fxstrand> I don't know
23:40 fdobridge: <g​fxstrand> I doubt it
23:43 fdobridge: <g​fxstrand> https://patchwork.freedesktop.org/patch/551659/
23:53 fdobridge: <g​fxstrand> Yeah, didn't fix anything
23:53 fdobridge: <g​fxstrand> I didn't figure