02:09 mangix: that bug fix is crazy. it fixed a lot of issues for me.
03:20 orbea: cool, dolphin-emu ubershaders work with nouveau again, no shader compiler error -4 or segfaults
03:21 orbea: :)
03:26 imirkin: orbea: yeah, i "fixed" it
03:26 imirkin: by which i mean, it works on nvf0+
03:26 orbea: thanks!
03:26 orbea: it works on my GK110B
03:27 imirkin: right
03:27 imirkin: won't work on a GK10x though
03:27 imirkin: there was a bug that was causing the register limit to be set too low
03:27 imirkin: i fixed it
03:27 imirkin: however on GK10x, there was no such issue
03:27 imirkin: so RA still fails
03:27 orbea: :/
03:38 nyef`: ... "dolphin-emu ubershaders"? Is this something important, and do I need to update from 5.0?
03:39 imirkin: it's currently a PR
03:40 nyef`: On the dolphin side or the nouveau side?
03:40 imirkin: dolphin
03:40 nyef`: Ah, okay. So not currently important for playing Metroid Prime. (-:
03:51 imirkin: helps with stuttering apparently
03:51 imirkin: how's the 3d stuff going btw?
03:52 imirkin: are you still trying to make GLX_STEREO visuals work?
03:52 orbea: nyef`: yea, it does help stuttering like before races in mario kart wii
03:55 nyef`: I'm getting some slowdowns in a few GC games, but I mostly don't play Wii games yet.
03:56 nyef`: imirkin: I've been more focused on trying to figure out the 3D Vision Kit hardware than working on the userland changes, TBH. And it's very much an off-and-on thing.
03:57 nyef`: I did get an email about someone wanting to use the HDMI 3D for... molecular visualization, I think it was?
03:57 imirkin: heh
04:12 nyef`: ... And I _just_ noticed the "off and on" pun with the LCD glasses. Not intentional, which is unusual for me. /-:
07:46 dugz: Is there firmware for the GT 720? I'm getting kernel errors
09:18 karolherbst: nyef`: it's an optional feature
09:38 dugz: the thing wants gk208a firmware, can I use gk20a?
11:10 RSpliet: dugz: what firmware? Keplers don't need external firmware for anything other than HW video decoding
11:14 RSpliet: ... -_-
11:29 karolherbst: "i->saturate = i->saturate;" that makes sense
11:31 RSpliet: Ah yes, the clause that means "i is either valid or my program crashes with a nullptr exception". Could've been written down less cryptically :-D
11:32 karolherbst: I am sure a compiler would optimize that away
11:33 RSpliet: I suspect that none of the involved vars are marked as volatile, and you're not compiling with -O0... so probably. Might as well leave it there then!
11:41 mwk: wtf h4x
11:41 mwk: nice
11:41 karolherbst: it's basically a comment saying: "I also thought of saturation here!"
11:41 mwk: Rankine has a funny pixel shader prefetch thing
11:42 mwk: when you rebind the active shader by the PIXEL_PROGRAM_OFFSET method, the vertex fetch unit snoops it and pre-fetches first 8 words from memory at this point
11:43 mwk: and sends these 9 words at once to the pixel shader
11:43 mwk: which will fetch further words from memory using the texture units
11:51 karolherbst: any idea why not more/less ?
11:52 karolherbst: 9 sounds like a funny number
11:53 mwk: 9 words == the PIXEL_PROGRAM_OFFSET bundle + 8 prefetched words
11:54 karolherbst: well yeah, but why not 7 or 9 prefetched words? I already assuming it's faster to just prefetch 8 and there is just "space" to prefetch 8 words in one go or something
11:55 karolherbst: *assume
11:58 mwk: well, it's Rankine pixel shader
11:58 mwk: so 8 words is 2 instructions
11:59 mwk: perhaps that's how much latency hiding they need
11:59 mwk: and for the later instructions, they just fetch instruction i+2 along with texture data for instruction i
12:02 karolherbst: I see
13:31 imirkin: karolherbst: where is that?
13:31 karolherbst: imirkin: in my pow patches
13:34 imirkin: oh. oops :)
15:04 dugz: I found that my GT 720 (106) card will load the firmware 409c 409d 41ac and 41ad for the nv108, and vdpauinfo reports it is active, except apps just display a black screen
15:05 dugz: any tricks to get this working?
15:18 imirkin_: dugz: ln -s nv108 nv106
15:18 imirkin_: same firmware
15:18 imirkin_: i really need to push out an update to my extract_firmware.py script
15:18 imirkin_: dugz: that said, you don't want to load the 409c/etc firmware
15:18 imirkin_: that's for pgraph and unlikely to work properly
15:19 imirkin_: you should definitely only use the video accel firmware
15:19 dugz: imirkin_, i was trying to activate vdpau
15:19 imirkin_: dugz: pastebin dmesg
15:20 dugz: imirkin_, https://paste.pound-python.org/show/oAyDi4BbfRHpy2Z7u1Ww/
15:20 imirkin_: [ 6.455765] nouveau 0000:0a:00.0: Direct firmware load for nvidia/gk208b/fecs_inst.bin failed with error -2
15:20 imirkin_: wtf
15:20 imirkin_: why is it loading that?
15:20 imirkin_: do you have NvUseGrFW=1 or something?
15:20 dugz: idk but i don't have that either
15:21 dugz: um
15:21 imirkin_: grep -r nouveau /etc/modprobe*
15:21 dugz: yes I apparently have set that
15:22 imirkin_: don't set that :)
15:22 dugz: *clickety click*
15:25 dugz: might as well test it ;)
15:29 imirkin_: i thought we printed a thing when external firmware was used... i guess that got lost in one of the 20 refactors
15:30 dugz: that got rid of all the dmesg warnings, vdpauinfo still says its working, but I'm just getting a black output screen with audio when I select a vdpau plugin
15:30 imirkin_: ok
15:30 imirkin_: are you using mplayer?
15:30 dugz: a tv-app
15:30 imirkin_: https://nouveau.freedesktop.org/wiki/VideoAcceleration/#usingvdpau
15:30 imirkin_: can you try with mplayer?
15:30 dugz: i can install mplayer gimme a few
15:30 imirkin_: and mind pasting the vdpauinfo output?
15:31 dugz: https://paste.pound-python.org/show/TN6ZaGHDxPhMg9He9v87/
15:32 imirkin_: right yeah, that seems fine
15:32 dugz: compositor?
15:32 imirkin_: shouldn't matter
15:32 imirkin_: oh, unless you're doing vdpau over prime
15:33 dugz: no, i don't have that
15:36 dugz: imirkin_, ooh! its workin :D
15:37 dugz: VO: [vdpau] 1280x720 => 1280x720 Planar YV12
15:37 dugz: imirkin++
15:38 dugz: thanks! you got me on the right track
15:40 imirkin_: yay
15:40 imirkin_: check that the VC is one of the h264-decoding ones too
15:40 imirkin_: since you can use vdpau for output similarly to how you can use xv for output
15:41 imirkin_: a lot of software appears to like to display vdpau-rendered frames with opengl. this is almost always a no-go with nouveau. mplayer does no such thing.
15:41 imirkin_: [i like mplayer]
15:41 dugz: vlc isn't handing the vdpau correctly, aha
15:42 imirkin_: i didn't think vlc worked with vdpau at all...
15:42 imirkin_: perhaps it does now. dunno.
15:42 dugz: vdpau_display vout display error: output surface creation failure: A catch-all error, used when no other error code applies.
15:42 imirkin_: oh goodie.
15:43 dugz: haha
15:43 imirkin_: it must try to create a surface that nouveau hates
15:46 imirkin_: if you run with VDPAU_TRACE=1 you should be able to see the exact call that fails
15:48 dugz: ok. i'm rebuilding vlc
15:49 imirkin_: and unfortunately all the mpv/mplayer2/kodi/etc players like to use vdpau for decoding and gl for rendering
15:49 imirkin_: this doesn't work when they do that from separate threads
15:50 imirkin_: [due to nouveau failings, admittedly, but failings none-the-less]
16:00 RSpliet: imirkin_: VLC can do VDPAU fine, had it working years ago. You can choose its output module in the advanced settings, GL is merely one of them
16:05 dugz: imirkin_, https://paste.pound-python.org/show/FYQpKMBRkxUMraKVeIjd/
16:08 imirkin_: vdp_output_surface_create(1, 2, 1280, 720, -)
16:08 imirkin_:tries to remember wtf this means
16:09 dugz: yeah i saw that, no clue offhand
16:09 imirkin_: so ... 2 = VdpRGBAFormat
16:09 imirkin_: and 2 corresponds to ... VDP_RGBA_FORMAT_R10G10B10A2
16:10 imirkin_: and there's no fucking way that works
16:10 imirkin_: although we do claim it in vdpauinfo
16:10 imirkin_: dunno.
16:11 imirkin_: one would have to track this down further to see what's going on exactly
16:11 dugz: hey its a vlc bug now
16:11 imirkin_: not really
16:11 imirkin_: we're telling it that it can create such surfaces
16:11 imirkin_: then it goes to create one, and that creation fails
16:11 dugz: oic
16:11 imirkin_: and its error handling is ... shall we say ... incomplete
16:12 dugz: this card is a little passive cooled gt 720, I'm using it for host graphics
16:12 dugz: its pretty nice for what it is
16:13 dugz: so far its playing nice with everything else and gpu passthrough is working
16:14 dugz: I can't attest to its gaming prowess, but it runs the opengl xscreensavers nice
16:14 imirkin_: yeah, those GK208's are pretty nice little pos gpu's
16:15 imirkin_: if you wanted to get more power out of it, you can clock it up -- check /sys/kernel/debug/dri/0/pstate
16:15 imirkin_: but since there's no active cooling, you have to be a little careful
16:15 dugz: lol
16:15 imirkin_: we don't currently have logic to change clocks based on temp/etc
16:16 dugz: it runs fine for a gentoo desktop. it hosts the rx480 for the vm's on passthrough
16:16 imirkin_: cool
16:16 dugz: i actually have nouveau and amdgpu both built and i can switch back and forth by rebooting and blacklisting one or the other
16:17 imirkin_: one might be more powerful than the other :)
16:17 dugz: i should install freecad and see how it runs on the gt 720 :D
16:19 imirkin_: fwiw i use a GK208B as my primary gpu as well
16:19 imirkin_: it's perfectly fine for almost everything
16:19 dugz: I really appreciate the passive cooling, hopefully it won't burn up
16:20 dugz: dust it off and back in business!
16:21 imirkin_: and if it does, get another one for $40 :)
16:21 dugz: and single-slot, since its an alt-GPU
16:21 imirkin_: single-slot passively cooled? surprising.
16:21 imirkin_: normally they go crazy with the fins
16:22 dugz: its one of these https://images10.newegg.com/NeweggImage/ProductImage/14-127-851-01.jpg
16:22 imirkin_: neat.
16:22 imirkin_: except i hate MSI
16:22 dugz: I got it for $20
16:22 dugz: It seems to run nouveau like a champ
16:24 dugz: oh. when i dual-boot into windows, it acts as a dedicated physX processor ;)
16:24 imirkin_: oh goodie
16:24 dugz: very nice feature! buy!
16:25 dugz: it does generate some extra rubble in fallout4 lol
17:11 dugz: imirkin_, freecad runs on this little thing. not bad!
17:11 imirkin_: you should have a fairly conformant GL 4.5 impl...
17:12 dugz: i was looking at getting a quadro 2000 instead of this gt 720, idk if I made the right choice or not
17:12 dugz: the quadro was maybe $15 more
17:12 imirkin_: the old fermi?
17:12 dugz: i think yeah
17:12 imirkin_: or k2000?
17:12 dugz: just 2000
17:12 dugz: k2000 is still real expensive
17:13 imirkin_: well, GF106 - more powerful but kepler has reclocking support while fermi doesn't
17:13 imirkin_: so i think you did ok
17:14 dugz: thanks for helping me sort out that firmware btw
17:14 imirkin_: np
17:15 dugz: i originally got a used gtx 460 for this duty, but it was a lot more power hungry than I expected
17:15 dugz: need to sell it off
17:18 imirkin_: if you're in the UK, RSpliet will probably take it off your hands
17:20 dugz: other side of the pond
17:43 RSpliet: dugz: which side?
17:43 dugz: I'm in Pennsylvania
17:44 RSpliet: ah, that pond, yeah... I might not be your target audience then
17:44 dugz: someone on fleabay will want it ;)