00:31 karolherbst: zmike: okay.. got intensity working, but what's the issue with 2d buffer there?
00:34 zmike: you can't swizzle a bufferview in vulkan
00:34 zmike: I've been considering whether I could reuse the 2dimport path for it
00:37 karolherbst: zmike: okay sure, but we don't use buffer views for 2D from buffer in the first place
00:38 zmike: I said buffer views
00:38 zmike: not 2d buffer
00:39 karolherbst: mhh okay, but it's not working for 2d buffer either
00:40 zmike: could be the same issue
00:40 zmike: I assume it's related to the swizzling
00:41 karolherbst: yeah, and it's all RRRR
00:41 karolherbst: I don't think it's the swizzle
00:41 karolherbst: it's just returning 0 for some values
00:41 karolherbst: maybe something with strides or something silly
00:42 karolherbst: anyway.. I'm not concerned about 1dbuffer, because rusticl calls is_format_supported with PIPE_BUFFER for those, and zink hopefully just doesn't return intensity there
00:43 karolherbst: well.. zink doesn't prevent that...
00:43 karolherbst: I should fix that
00:48 zmike: is it actually applying the swizzle?
00:49 karolherbst: I would expect that if that would be the issue, the test would fail in a different way
00:49 karolherbst: but the vulkan side image view did have a RRRR swizzle
00:49 karolherbst: or at least zink did create such one
00:50 zmike: that's something
00:50 karolherbst: mhhh lvp crashes
00:51 zmike: can lavapipe actually do the 2d buffer import normally?
00:51 karolherbst: also crashes with non intensity formats...
00:52 zmike: I'd be surprised if lavapipe could do the dmabuf reinterpret
00:53 karolherbst: let me make the CTS be a bit more verbose... it's always hard to figure out what actually goes wrong
01:02 karolherbst: mhh yeah okay.. all reads are just 0
01:11 karolherbst: I'll take a look tomorrow, it seems like this failure is another regressions or unrelated or something
01:15 karolherbst: yeah....
01:15 karolherbst: it's also broken for non intensity, but at least that's a regression
01:22 karolherbst: ah no.. it was a local patch of mine, but.. mhhh weird...
01:22 karolherbst: mhhhh
01:24 karolherbst: ah no.. I just uhm... I'm tired :')
01:29 karolherbst: okay.. it works on 25.1 branchpoint, it doens't on main.. good
01:30 zmike: probably my surface refactor broke it somehow
01:31 karolherbst: I have the feeling it's me
01:40 karolherbst: zmike: okay, it's you: b022cdc8a1c3534d6f57f53b876e30b10e339432
01:42 zmike: huh
01:42 zmike: I guess that means there's a place that should be setting res->valid and isn't
01:42 zmike: you could probably find it pretty trivially by seeing where the resource is written before that call
01:44 karolherbst: mhh with that worked around.. CL_INTENSITY 2d_from_buffer does work for read_image (which is a texture read), it works for write_image (guess the shader simply ignores the other components), but for read_write images it doesn't, because the read is an actual image_read operation and as I said.. no swizzles for those
01:44 karolherbst: right...
01:44 karolherbst: I'll figure out a proper patch tomorrow
01:45 karolherbst: just need to figure out what to do about those image views...
01:45 karolherbst: might be easier if zink just sets the swizzle 🙃
01:46 zmike: feels like cheating if I do all the work for you
01:46 karolherbst: yeah but other drivers also handle it internally :P
01:46 zmike: I guess
01:46 karolherbst: or do you want to have a swizzle added to pipe_image_view?
01:47 zmike: I don't really want that for just this one thing, no
01:47 karolherbst: okay :)
01:48 zmike: smh being bullied now
01:49 karolherbst: anyway, I'll send patches tomorrow or so
09:14 phasta: I've got a bug fix for a new bug in the current -rc. Applying to drm-misc-fixes fails, though. What should I do about that?
09:20 phasta: Ah wait, my bad. Outdated branch
09:30 phasta: Still. Why is it that a bug-fix that is neither in drm-next nor drm-misc-next should be applied to drm-misc-next? I thought drm-misc-next is for new features and won't be sent to Linus after feature-freeze
10:29 tzimmermann: sima, when pushing the reverts, dom told me: "dim: ERROR: a71e35aecc07 ("Revert "drm/etnaviv: Use dma_buf from GEM object instance""): Mandatory Maintainer Acked-by missing., aborting". is that intentional? looks like a bug to me. your r-b should be enough IMHO. i've now pushed with 'dim -f', but still...
10:29 tzimmermann: s/dom/dim/
10:31 sima: tzimmermann, hm maybe it's mripard's maintainer-ack check misfiring?
10:31 sima: mripard, ^^ thoughts?
10:31 sima: tzimmermann, and yeah don't see why there's anything amiss with that one
10:32 tzimmermann: not problem in practice, but it looks like an oversight
10:32 sima: tzimmermann, 43254c2aa575037fc031c7ac21b0d031c700b2bf in dim, just landed recently
10:32 sima: yeah false-positives in checks are not good, because it trains people to ignore them
11:17 mripard: sima: we've had a bunch I was looking into this morning, and I'm a bit confused for some.
11:17 mripard: in this particular case, it's not a false positive
11:18 mripard: drm-misc isn't the maintainer of that driver, and we have no acked-by from a maintainer
11:19 sima: hm
11:19 sima: well maybe airlied/me should overrule as acks, but no idea how to map that
11:19 mripard: you do
11:19 mripard: but you didn't give an acked-by either
11:20 sima: and yeah etnaviv is a bit the odd one out, maybe should add drm-misc for them as fallback since defacto it's kinda the situation anyway?
11:20 sima: lynxeye, ^^ thoughts?
11:20 sima: mripard, I kinda r-b'ed, maybe should imply?
11:20 sima:not sure
11:20 mripard: not really
11:21 sima: or maybe airlied&me should get into the business of liberally acking?
11:21 sima: also doesn't feel like a job we should do, smells a bit much like lock keeper stuff we try to avoid
11:21 mripard: https://docs.kernel.org/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by
11:22 sima: hm yeah maybe should just print more acks for these cases for now and see ...
11:22 sima: tzimmermann, ^^
11:22 mripard: acked-by doesn't mean you reviewed it, just that you're ok with it being merged (possibly in a separate tree)
11:22 sima: or just add some of the smaller drivers that aren't yet in drm-misc but often land through there officially as a 2nd tree
11:23 mripard: and reviewed-by means that you reviewed it, but doesn't provide any opinion on how it should be merged
11:23 sima: yeah I know, just means more tags but well paperwork is going to paperwork I guess
11:23 mripard: maybe give both if you don't care?
11:23 sima: yeah
11:23 sima: plus maybe add some more things to drm-misc officially for these cases
11:23 sima: make the flow more explicit can't hurt, process transparency and all that
11:23 mripard: yep
11:23 sima: that transparency is honestly biggest reason why I like your dim change
11:24 mripard: it was going well until that week though.... we had ~10 patches triggering that warning
11:24 sima: yeah I expect some surprises, always happens with this stuff
11:24 mripard: and most of them were legit, where the committer obviously ignored the warning.
11:25 mripard: so we also have to weigh in acceptance
11:25 sima: yeah it'll take some educating to get there
11:25 mripard: because if committers are just going to use dim -f all the time, it's a net loss.
11:25 sima: did you reply to the patches were legit warning was ignored?
11:25 sima: yup
11:26 mripard: a funny source of false positive is that some have their name quoted in maintainers
11:26 mripard: but git doesn't
11:27 mripard: so the strings don't match, even though they are obviously equal
11:27 mripard: https://gitlab.freedesktop.org/drm/xe/kernel/-/commit/73c0e8054fcf36883c1a20d5e2e91fb8ed24d3ea is such an example
11:28 mripard: no, sorry, that one is a legit false positive
11:29 mripard: I meant this one https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/a6cfa4c8833944f8912c1fa7f95795753f6376ea
11:30 mripard: we have the acked-by from Rafael
11:30 mripard: but he's listed in MAINTAINERS as '"Rafael J. Wysocki" <rafael@kernel.org>'
11:31 mripard: (but not consistently, for additional fun)
11:49 zmike: mareko: you probably want to weigh in on https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36156
11:53 sima: mripard, just matching on email and trying to canonicalize with .mailmap?
11:55 mripard: yeah, that's a good idea
11:55 mripard: possibly leveraging python's email module that we already use to parse the address properly
12:37 lynxeye: sima: I try to give acks for the etnaviv things I think should be merged through drm-misc, but TBH haven't been quite on top of it due to too much other stuff. On the other hand people seem to assume that etnaviv goes through drm-misc and don't really look into MAINTAINERS. I actually pondered moving etnaviv to drm-misc just to adjust reality to the assumption, but haven't quite made the switch yet.
12:56 sima: lynxeye, yeah was more wondering whether we should put it into both
12:56 sima: main dev still through your tree, but kinda the more random things and subsystem stuff can officially go through drm-misc too
12:56 sima: which I think is where defacto we are right now, roughly
12:57 sima: so as long as mripard's dim check can cope with multiple git repo lines, we should be fine
12:57 sima: lynxeye, that way you can make any decision about moving main etnaviv dev at your own pace, and we still document a bit more accurately what's actually going on
13:11 lynxeye: sima: Yea, if the scripts can handle that, that would be fine. I have no intention to introduce interdependencies between drm-misc and the etnaviv tree for the subsystem wide changes that happen to touch etnaviv. Those should always go through drm-misc. Conflicts due to this mode of operation are few and easy to handle on my side.
14:07 sima: mripard, can dim cope with that?
14:09 mripard: sima: I'm not sure how we could solve this, really. Because we already have multiple git repos between drm-misc, drm and linus' iirc.
14:10 mripard: the problem with etnaviv is that we're merging patches into a repo that isn't documented in MAINTAINERS
15:13 sima: mripard, https://paste.debian.net/hidden/978b9ce2/ this is what I'm thinking off
15:13 sima: just means dim needs to allow 2 git repos
15:13 sima: or I'm not understanding the issue
16:38 karolherbst: zmike: okay.. I learned new things: 1. for storage images the component remap needs to be an identity remap, so that just rules out intensity for storage images completely. 2. the zink_batch_reference_resource_rw calls inside zink_copy_buffer are causing the img2d_from_buf fails, and overriding them to assume src/dst are images is fixing the sisue
16:39 emersion: hmmm, dim push-branch drm-misc-next fails with:
16:39 emersion: fatal: bad object refs/remotes/drm-intel/topic/core-for-CI
16:40 emersion: i've tried rm'ing the remote and running dim setup but that doesn't fix it
16:40 emersion: any ideas what's up?
16:58 zmike: karolherbst: 2 is actually stupider
16:58 karolherbst: zmike: I've subbmited https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36200 but no idea if there are better ways :)
16:58 zmike: I saw
17:01 karolherbst: in regards to 1. in _theory_ I think writing to intensity images could be allowed, I just don't know if it's valid to assume that a vec4 write to the R image does what we want?
17:01 zmike: no clue
17:01 karolherbst: but... can't really express that in gallium anyway
17:01 karolherbst: I know it worked fine on anv for writing to them, but reading from intensity storage images was showing really odd behavior
17:02 karolherbst: I doubt anybody ever needs it, so whatever really
17:03 zmike: my MR should fix your not-intensity issue
17:04 karolherbst: quick testing tells me it does
17:04 karolherbst: let me push it through my testing to confirm
17:12 daniels: emersion: git remote prune drm-intel? git symbolic-ref -d remotes/intel/topic/core-for-CI?