02:20 ripdog: does anyone here have a gtx 970? I've never had nouveau work for me once, I either end up with a flashing black screen, a plain black screen or some stale boot messages on one screen and nothing else. apprantly nouveau supports the 970. any ideas? proprietary drivers work fine. I've tested fedora and arch
03:57 Hurderion: So... hi? (:
08:49 karolherbst: mhhh, apitraceing wine again, this is gonna be fun
09:00 karolherbst: sigh... I guess I need to apitrace it in wine, and then apitrace retracing that
10:14 karolherbst: wine uses glXSwapBuffersMscOML...
10:30 mooch2: mwk, how do you change the size of ramin again on nv20?
10:38 mwk: uh? you don't
10:39 mwk: it's always 1MiB
10:49 mooch2: oh okay
10:49 mooch2: sorry
10:50 mooch2: i fixed the bug anyway tho, thanks
12:36 mooch2: god, i wish somebody would help me with my quest to emulate nv3
13:16 karolherbst: nice a broken opt
13:17 karolherbst: makes it easy to debug
13:21 karolherbst: and it isn't algebraicOpt, weird
14:31 karolherbst: okay, the ConstFolding::opnd OP_MUL case for "if (!i->postFactor && (imm0.isInteger(1) || imm0.isInteger(-1)))" has a bug
14:43 karolherbst: ....
14:43 karolherbst: a mul with saturate got into this
14:48 mooch2: mwk: how am i supposed to figure out where nt4 loads the damned nv3 drivers?
14:51 karolherbst: mhh
14:51 mwk: mooch2: at this point you know more about nt4 drivers than me, I'm afraid
14:52 karolherbst: mwk, imirkin_: and idea if saturate is supported on OP_MOV? I could imagine there are several passes which just convert X -> OP_MOV and don't care about saturation...
14:52 mwk: karolherbst: what ISA?
14:52 karolherbst: nvc0
14:52 mwk: mov cannot saturage, you need one of the cvts
14:52 karolherbst: well yeah, I wrote a patch doing a OP_SAT
14:53 karolherbst: I am more wondering if more passes are broken due to this
14:53 mooch2: shit
14:53 mooch2: because i'm dealing with a situation where all i have is the EIP where things go wrong, and no disassembly
14:54 karolherbst: mwk: expecially, because we have tons like "i->op = i->src(t).mod.getOp()"
14:57 karolherbst: mwk: things like OP_ABS and so on are able tu saturate?
14:58 karolherbst: or is it a simple cvt?
15:13 karolherbst: do you think it might make sense to add an assert on emitMOV, so that we don't end up emitting movs with saturation flags?
15:24 mwk: karolherbst: I've never touched the nv50 compiler
15:24 mwk: I only know the hw instructions
15:27 karolherbst: I see
15:37 RSpliet: karolherbst: well, as long as you keep in mind that assert()s are for developers only, that's absolutely a good idea!
15:37 karolherbst: currently checking on which stable branches to push this on
15:37 karolherbst: because this issue is quite old
19:12 karolherbst: crazy, ubershaders in dolphin make games run like super bad under nouveau
19:12 tobijk: big shader, spilling eveywhere: nouveau is not good at scheduling: there you go?!
19:14 karolherbst: I am sure I get more perf out of them quite easily
19:16 tobijk: mh i havent seen those shaders, so dunno...
19:17 karolherbst: should run on nvidia to compare things
19:18 karolherbst: and they messed with the libGL loading, cause bumblebee doesn't work anymore
19:18 tobijk: karolherbst: depens, maybe your distro uses glvnd now?
19:19 tobijk: not sure what bumblebee would work in that case
19:19 karolherbst: no I don't have glvnd yet
19:20 karolherbst: I am sure they just tried to be smart and messed up
19:20 karolherbst: like using hard coded paths or something
19:20 tobijk: heh :)
19:21 karolherbst: git bisect it is then
19:30 tobijk: mh i should finally start debugging civ6 and nouveau
19:31 karolherbst: turns out, dolphin defaults to EGL
19:32 tobijk: mh egl always defaults to intel for me
19:32 tobijk: but i have never cared actually
19:32 karolherbst: bumblebee can't do EGL
19:32 karolherbst: what's wrong with civ6?
19:33 karolherbst: kind of feeling like fixing bugs today
19:33 tobijk: dunno yet, i just segfauls somewhere in nouveau
19:33 tobijk: the mesa part
19:33 karolherbst: mt?
19:33 tobijk: mt?
19:33 karolherbst: multithreading
19:33 karolherbst: try to run it with that offloaded gl thread thingy
19:34 tobijk: with? :O
19:37 karolherbst: tobijk: mesa_glthread=true
19:38 tobijk: karolherbst: yeah will try soon, but first i'm getting apitrace compiled again :)
19:39 karolherbst: okay, ubershaders with nvidia are pretty fast
19:41 tobijk: karolherbst: mh make sure you are really hitting nouveau
19:41 karolherbst: I do
19:50 tobijk: karolherbst: fyi: Civ6[14969]: segfault at 54 ip 00007f8296367d20 sp 00007f828d7909f8 error 4 in nouveau_dri.so[7f8295e84000+9f8000]
19:50 tobijk: with glthread
19:51 karolherbst: meh :(
19:52 karolherbst: stacktrace pls
19:53 tobijk: karolherbst: yeah i'm going to capture a apitrace
19:53 karolherbst: won't help
19:53 karolherbst: maybe it's my fault
19:53 karolherbst: but capturing crashes never worked out for me
19:54 karolherbst: maybe because they can't record the last call?
19:54 karolherbst: especially if it's crashing
19:54 tobijk: karolherbst: i will capture it with intel, where it semi works
19:54 karolherbst: why don't you simply run it within gdb?
19:55 karolherbst: but yeah, recording with intel might help
19:55 tobijk: karolherbst: so i can simply run it later on easily
19:55 karolherbst: mhh
19:55 karolherbst: nouveau does some heavy spilling in most ubershaders
19:56 tobijk: karolherbst: so my wild guess was actually right ;-)
19:56 karolherbst: no clue
19:56 karolherbst: I don't see why it should result in such terrible perf
19:57 karolherbst: uhm....
19:57 karolherbst: one BB literally starts with nearly a hundred of phis
19:58 karolherbst: I like this part espeically: https://gist.github.com/karolherbst/f50ce874f51b64b37abb55ba60ec14f4
19:58 karolherbst: ...
19:59 tobijk: :o
19:59 karolherbst: 4345 and 4346
19:59 karolherbst: makes sense
20:00 karolherbst: do you still think spilling is the issue? :D
20:01 karolherbst: mhh
20:01 karolherbst: I mean it is somehow caused by spilling
20:01 karolherbst: but the heck
20:02 karolherbst: "1968: phi u32 %r9918 %r9905 %r15607 %r15525 %r15407 %r15393 %r15348 %r15055 %r14795 %r14784 %r14773 %r14762 %r14751 %r14740 %r14729 %r14718 %r14707 %r9916 (0)" :D
20:02 tobijk: mh would be nice to see those shaders in a precompiled state as well
20:03 tobijk: plain gl shaders i mean
20:03 karolherbst: they emulate hardware
20:03 karolherbst: what do you expect?
20:03 karolherbst: tons of switches
20:03 karolherbst: big uniforms
20:04 karolherbst: I think I will write a pass which at least opts those silly load/store pairs away
20:04 karolherbst: this should give us a decent improvement
20:05 tobijk: yeah, how many more of them are there btw?
20:05 karolherbst: too many
20:06 karolherbst: "RASpillingUnfuck" sounds like a good name to me
20:07 karolherbst: but maybe I should just fix the spill code ...
20:07 karolherbst: no clue where to actually look for this
20:08 tobijk: karolherbst: there should be a spillcodeinserter method somewhere
20:08 tobijk: ah it actually is a whole class
20:19 tobijk: meh, why does apitrace not trace :/
20:43 karolherbst: tobijk: total instructions in shared programs : 161535 -> 139257 (-13.79%)
20:44 tobijk: yay
20:44 tobijk: care to show the changes?
20:44 karolherbst: it's a hack
20:44 karolherbst: we should fix the spilling code
20:45 karolherbst: but I wanted to have a dirty pass to at least show how much it messes up
20:45 karolherbst: no checking if it runs better
20:45 karolherbst: *now
20:45 tobijk: how much is it with a shaderdb run without dolphin included?
20:45 karolherbst: no clue
20:45 karolherbst: not much I figure
20:46 tobijk: mhm somehow that spilling thing makes me wonder if we regressed that at some point
20:46 karolherbst: maybe
20:47 karolherbst: anyhow, I messed up
20:47 karolherbst: too many things I didn't respect
20:48 tobijk: karolherbst: yeah thats always the problem with the spilling, its hard to get right :/
20:55 tobijk: ERROR: no viable spill candidates left
20:55 tobijk: ERROR: no viable spill candidates left
20:56 tobijk: ERROR: no viable spill candidates left
20:56 tobijk: nvc0_program_translate:610 - shader translation failed: -4
20:56 tobijk: karolherbst: --^ Civ6 :D
20:56 karolherbst: hihi
20:57 karolherbst: I guess I can't really remove that load for now
20:58 tobijk: how where you removing the LD?
20:59 tobijk: check if ->prev is a ST?
20:59 tobijk: (for the same value)
21:00 karolherbst: yeah
21:01 karolherbst: ohh wait
21:01 karolherbst: that's not the issue
21:01 karolherbst: I can only do ti for local memory
21:02 karolherbst: anyway, we should rather fix the spilling code to not do such stupid things
21:03 tobijk: karolherbst: yeah that would fix a bunch of problems with many apps/games
21:03 karolherbst: doubtful
21:04 karolherbst: we could improve RA or scheduling
21:04 karolherbst: but that's a different issue
21:04 karolherbst: okay, there are some bugs within RA doing _really_ silly things
21:04 karolherbst: but that's kind of an exception
21:04 tobijk: well i mean apps crashing because we cant spill correctly :D
21:04 karolherbst: I don't get how you can't spill anyhow
21:05 karolherbst: ohh mhh crap
21:05 karolherbst: I can't remove those stores as well, bcause the same location might be read again
21:05 karolherbst: messy
21:05 tobijk: yep
21:05 karolherbst: uhm
21:05 karolherbst: no, that makes no sense
21:06 karolherbst: sure I can remove the store
21:06 tobijk: but then u read in shit from that location
21:06 karolherbst: think again
21:06 karolherbst: look at the instructions again
21:07 tobijk: oh its actually ld st and not st ld *dang*
21:08 karolherbst: well doing st ld would be pretty pointless as well, well the ld part would be
21:22 karolherbst: paperwork stinks
21:58 tobijk: karolherbst: oh wow, it looks like when we try to spill we reuse the value for the last spilled one and try to find a better one (and scoring them)
21:58 tobijk: even if there are vars to spill we may end up in refusing to spill if the score is not better then the last one
22:12 Azur_Lighting: how is the performance of nouveau with a GT 730, i know this card is not even powerful of new but, at this point is the same has the nvidia closed source or better?
22:18 tobijk: Azur_Lighting: i'm not exactly sure which generation a 730 is, if its a kepler, then the performance is (with reclocking) like 80% of the nvidia driver, if its a newer generation you are stuck with the boot clocks which are often the lowest ones, which gives you bad performance
22:18 Azur_Lighting: i have a Gt 730 but its fermi
22:19 tobijk: :O?
22:20 Azur_Lighting: i mean it has 96 CUDA cores
22:21 Azur_Lighting: i think fermi is more old right?
22:21 tobijk: Azur_Lighting: yep
22:21 tobijk: care to run: "glxinfo | grep Device"
22:22 tobijk: should give you the exact chip
22:23 tobijk: (with nouveau running, not nvidia)
22:23 Azur_Lighting: oh
22:49 nyef`: Would using a compositing WM affect OpenGL VBlank synchronization?
23:45 nyef`: Hrm. Some quick searching suggests that "it depends on the compositor", which isn't quite useful.
23:45 nyef`: ... Also might not sync up correctly for what I'm doing *anyway*. /-: