00:15 inglor: I think I've got the mmiotrace
00:15 inglor: might be a lot of data
00:15 inglor: mmiotrade log : https://dl.dropboxusercontent.com/u/7969252/mmiotrace.tar.gz
00:15 karolherbst: imirkin_: the water reflection is also broken in talos princtiple
00:16 inglor: right off to bed ;)
00:17 karolherbst: ahhhh
00:17 inglor: too big? :D
00:19 karolherbst: ah!!!!
00:19 karolherbst: inglor: nope
00:20 karolherbst: odd
00:20 karolherbst: imirkin_: this might explain the issue we've got with talos principle
00:22 imirkin: karolherbst: your gists with the backtraces are gone :(
00:22 karolherbst: the old ones yes, because I don't trust me enough to not have messed up
00:22 karolherbst: this is till there: https://gist.github.com/karolherbst/ced1b826fa3dc1343be0d0eff8bc069a
00:22 imirkin: hm ok
00:22 karolherbst: I might have or not have your patch applied
00:23 karolherbst: so to be safe I created a new one where I am sure
00:23 karolherbst: check this out: https://gist.github.com/karolherbst/ced1b826fa3dc1343be0d0eff8bc069a
00:24 imirkin: that one doesn't (directly) show an issue
00:24 karolherbst: well I know
00:24 karolherbst: the broken reflection is odd though
00:25 imirkin: talos is messed up bigtime
00:25 karolherbst: yeah
00:25 karolherbst: the moving water reflection...
00:28 imirkin: the water's broken, but it's not just that
00:28 imirkin: a ton of stuff is broken
00:30 karolherbst: yeah but I think it is all related
00:33 karolherbst: imirkin: anything funny you encountered while looking at the talos trace?
00:33 imirkin: not explicitly, besides "it's totally bonkers"
00:33 karolherbst: inglor: 25MB now :p
00:34 karolherbst: mhhh
00:35 imirkin: karolherbst: fyi i pushed out a minor fix to my locking patch in a separate commit
00:35 imirkin: karolherbst: however it's incomplete
00:35 karolherbst: awesome
00:36 imirkin: karolherbst: and i may have to rip out some of the fence work logic to fix it "for real"
00:36 karolherbst: could it fix the issue from crash I gave you?
00:36 imirkin: no clue
00:36 karolherbst: I see
00:36 imirkin: totally untested too
00:36 karolherbst: then I most likely wait
00:36 karolherbst: ohh
00:36 imirkin: so it could just insta-deadlock
00:36 karolherbst: well
00:36 karolherbst: sounds good to me then
00:36 imirkin: it's in a separate commit, so the original is "safe" :)
00:38 karolherbst: ohh right
00:38 karolherbst: talos was the game with the funny shaders
00:42 karolherbst: because I know you like that: https://gist.github.com/karolherbst/6f2b29b8911dc8941d26b2b22440cc0c :p
00:45 karolherbst: imirkin: well at least those talos shaders have like _tons_ of comments, because we can figure something out if I find which "feature" adds those issues
00:50 karolherbst: uhhh wow
00:55 karolherbst: :D
00:55 karolherbst: now I am stuck with the broken stuff
00:56 karolherbst: funny
01:04 karolherbst: okay, I think I found the thing which causes those water issues
01:05 imirkin: oh yeah?
01:05 imirkin: or you mean the setting? the setting is some sort of dynamic lighting setting
01:05 imirkin: although iirc it's actually messed up even with that
01:06 imirkin: but this makes it REALLY bad
01:06 karolherbst: and another one
01:06 karolherbst: found the second thing for the water
01:07 karolherbst: yay, no flickering on the groun
01:07 karolherbst: d
01:07 imirkin: what's the setting?
01:07 imirkin: btw, the flickering on kepler is WAY worse than it was on fermi
01:07 karolherbst: "rendering LOD BIAS"
01:08 imirkin: huh ok
01:08 karolherbst: "scale for LOD distance calculations"
01:08 karolherbst: is the description
01:08 imirkin: can you make a mmt of talos with nvidia (and that setting enabled)?
01:08 karolherbst: okay and now another issue with the water
01:08 imirkin: i want to see if it does anything special for texlod
01:09 karolherbst: well first I want to find the next bad setting
01:09 imirkin: with non-uniform lod's
01:09 imirkin: although ... it should work
01:10 imirkin: unless we get the argument order wrong. but there are a ton of tests that make sure we don't
01:10 karolherbst: ahh meh, just got a flicker again :/
01:11 karolherbst: I am sure that settings changed something though
01:12 karolherbst: huh
01:13 karolherbst: uhh
01:13 karolherbst: some cpu setting fixes the moving reflection in the water
01:13 karolherbst: ...
01:14 karolherbst: "mirror reflections" ... yeah well, that was too obvious
01:18 imirkin: i'm gonna see if hakzsam's fixed texbar patch helps anything
01:19 karolherbst: for talos?
01:19 imirkin: ya
01:19 karolherbst: mhh
01:19 karolherbst: where is his patch?
01:19 imirkin: his version was buggy though
01:19 karolherbst: ahh I see
01:20 imirkin: http://hastebin.com/odisuxedob.coffee
01:20 imirkin: this is my redone fixed version
01:21 imirkin: but that wouldn't fix anything on fermi
01:23 karolherbst: that guy though: https://drive.google.com/file/d/0B78S7GSrzebIc0dxajMtQmJMNms/edit
01:24 imirkin: nope, no change
01:28 karolherbst: okay
01:28 karolherbst: ..mhh
01:28 karolherbst: at least the flickering walls are there on lowest settings
01:28 karolherbst: might should fix that issue first, allthough there are still tons of settings....
01:30 karolherbst: mhhh
01:30 karolherbst: okay
01:30 karolherbst: this is the situation: when I increase the lod thing on lowest settings, after a specific threshold the walls start to flicker
01:31 imirkin: interesting.
01:31 imirkin: could be messing up sampler settings
01:31 imirkin: or could be messing up the instruction
01:32 imirkin: perhaps i'm supposed to do some clamping that i don't? dunno
01:32 imirkin: like if some jerk sets an lod bias of 35, is it my job to clamp it to 15?
01:32 imirkin: (i should hope not, but who knows)
01:33 karolherbst: mhh
01:33 karolherbst: well, no I really disabled everything and just maxed out the lod ting
01:33 karolherbst: and yeah, the issue is still there
01:34 imirkin: great
01:34 imirkin: get an mmt of nvidia doing it
01:34 imirkin: and i can look at the shaders and samplers
01:34 imirkin: and see if they set anything we don't
01:35 karolherbst: first tracing time! :D
01:37 karolherbst: 315M apitrace
01:37 karolherbst: that sounds small
01:39 karolherbst: ohhhhhh
01:40 imirkin: does nvidia also flicker? that'd be amusing
01:40 karolherbst: imirkin: how do you like that? https://gist.github.com/karolherbst/3fa8f69275dfb0de36026282c6fd5a1e
01:40 karolherbst: nope, nvidia doesn'T flicker
01:40 imirkin: karolherbst: yeah, i mentioned it to the guy who added that warning
01:40 imirkin: the warning is bogus
01:41 karolherbst: mhh
01:41 karolherbst: there is a big ground flicker at the start of the trace, but that already looked engine related
01:41 karolherbst: anyway, nvidia has it too
01:42 karolherbst: but no wall flicker
01:42 karolherbst: shit
01:42 karolherbst: it is like 3:40 am here
01:42 karolherbst: and the sun is rising
01:42 karolherbst: :D
01:48 karolherbst: meh.. kernel crashed on nouveau unload
01:48 karolherbst: ....
01:48 karolherbst: and my trace broke
01:57 karolherbst: imirkin: here is the apitrace at least: https://drive.google.com/open?id=0B78S7GSrzebIN2xiZnB5VFg0Q2c
01:58 karolherbst: imirkin: what is the best way to let an mmt trace not growing so big? :/
01:58 imirkin: heh
01:58 imirkin: mmt small things :)
01:58 karolherbst: :D
01:59 karolherbst: the thing is like 10 GB and I am not even past loading the level
02:00 imirkin: look on the bright side - you're going to be the one analyzing the mmt trace :)
02:00 imirkin: coz i'm not downloading a 100GB trace
02:00 karolherbst: I will xz compress it before that :p
02:00 karolherbst: but how do you know it will be 100 GB big :O
02:01 imirkin: i dunno... "if these trends continue"?
02:01 karolherbst: mhh
02:01 karolherbst: does a lower resolution apitrace also lead to smaller mmt traces?
02:01 imirkin: i would assume so
02:04 karolherbst: well
02:04 karolherbst: at least filling the disc cache before making the real trace will help
02:05 imirkin: https://goo.gl/5FzLXb
02:05 karolherbst: mhh now the issue doesn't show on lower res
02:05 karolherbst: ...
02:12 karolherbst: seems to look better with a lower res
02:13 karolherbst: 4.2 GB uncompressed
02:13 karolherbst: much better
02:20 karolherbst: imirkin: I've update the apitrace now with the low res version, I hope the mmt is compressed real fast now too
02:20 karolherbst: if you want you could check if the flicker also happens for you, but it should, right?
02:23 karolherbst: imirkin: wow, the mmt file xz compressed will be like 3% from the original file size...
02:23 karolherbst: impressive
02:23 karolherbst: so around 100MB in total
02:34 karolherbst: mhh no it is increasing meh...
02:58 karolherbst: imirkin: and here the mmt : https://drive.google.com/open?id=0B78S7GSrzebIYm01YXp6aHFNSGM
02:58 karolherbst: and now I go to bed
05:13 mupuf: skeggsb_: I did not check for the FSRM, but at the very least, increasing the temperature to 120 (with nvaforcetemp) did not stop the voltage controller
11:18 karolherbst: can we get somehow the current executed program on a WARP_ERROR on that warp?
11:46 zeq: karolherbst: I've created an mmiotrace of the nvidia driver with my GTX 8800. Where shall I send it?
11:47 karolherbst: zeq: upload it somewhere
11:47 zeq: I can host it.
11:49 zeq: http://www.snewbury.org.uk/nvidiadump.txt
11:53 zeq: http://www.snewbury.org.uk/8800.bios
12:16 mwk: karolherbst: you need to install a trap handler, no small feat
12:17 RSpliet: zeq: please xz-compress your dump and send it to mmio.dumps at gmail
12:17 RSpliet: and with dump, I mean trace...
12:17 RSpliet: (although the e-mail address really is mmio.dumps ...)
12:22 RSpliet: zeq: also, if you happen to be around Cambridge sometime after this month (not around the corner, I know...), physical access to the card could be very helpful to get all the details right. We can talk about that in July if you want. The info provided is already very helpful
12:59 zeq: RSpliet: sent the dump. I do have a wedding to attend in Ipswich, next month, I think. It's probably doubtful my wife will let me take a detour to Cambridge, but you never know.
13:16 RSpliet: hahaha, well, big chance I'll have a wedding in the Netherlands that week, so don't make too much effort for it :-P
13:19 RSpliet: also, that is quite a detour... (sorry, I guess I deserve some stalker points for whois-ing your domain O:-) )
13:23 RSpliet: zeq: could you double-check the URL to your VBIOS please? It appears to be missing on your server
14:18 zeq: RSpliet: yes, sorry compressed it too.
14:18 zeq: append an .xz
14:19 karolherbst: imirkin: so what would be the next step regarding the talos traces?
14:20 imirkin: karolherbst: have a look at (a) the shaders to see if they don't do the texlod stuff differently, and (b) the TIC/TSC's to see if they aren't setting some bits differently
14:20 zeq: RSpliet: http://www.snewbury.org.uk/8800.rom.xz
14:21 karolherbst: imirkin: do you have any script to extract those shaders the easy way?
14:21 imirkin: karolherbst: demmt. search for START_ID
14:22 karolherbst: well yeah, I tried pcregrep already, but it sucked
14:22 karolherbst: crashed all the way
14:22 imirkin: you have to look at it
14:22 karolherbst: the shaders are full of texLOD stuff by the way
14:22 imirkin: i'm sure.
14:24 zeq: RSpliet: Nice stalking btw. I'm in The Netherlands fairly often myself, since my wife is Dutch, no immediate plans though. I might be able to talk her into a day trip to Cambridge though, it is one of her favourite cities.
14:25 karolherbst: in CodeEmitterNVC0::emitTXQ is a comment: "const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)"
14:26 imirkin: karolherbst: right.
14:26 imirkin: karolherbst: we want to point it at a non-existent source
14:26 karolherbst: ahhh
14:27 karolherbst: I was more unsure if that comment is a todo or more an explenation
14:29 RSpliet: zeq: I'm afraid that the URL you provided links to a 404 page
14:30 zeq: RSpliet: that's because I'm an idiot
14:30 imirkin: takes some effort to make an xz'd vbios have the same text as an html 404 page... but apparently he's done it
14:30 zeq: RSpliet: http://www.snewbury.org.uk/8800.bios.xz
14:31 RSpliet: zeq: thanks, archived it
14:37 imirkin: zeq: btw, i assume you're not planning on doing serious gaming on that thing, but nouveau on the G80 is a tiny bit lacking
14:37 imirkin: a bunch of stuff is G84+, and so some things on G80 just don't work
14:38 zeq: imirkin: is that, they work differently and the code doesn't exist, or the hardware isn't capable?
14:38 imirkin: the hardware doesn't have certain features. that can be worked around in code, but the code to work around it doesn't exist
14:39 imirkin: it's *mostly* little things that you'd find in spec conformance tests
14:39 imirkin: rather than actual real software
14:39 imirkin: but every so often a real piece of software will rely on that functionality
14:39 zeq: Anyway, serious gaming and a 9(?) year old GPU probably isn't a viable premise :)
14:40 zeq: it was a pretty serious GPU in its day though
14:40 imirkin: i think the min/max LOD restriction doesn't work right, and gl_VertexID is going to be wrong in the presence of base vertex usage
14:41 imirkin: and ... iirc we have some situations where we mess up and try to do tiling in sysram, which isn't supported at all by the hw
14:41 imirkin: whereas G84+ is happy to do it
14:41 imirkin: we try not to do that, but ... i've seen it happen
14:41 zeq: I'm mostly hoping to use it for TV based web/media light gaming
14:42 imirkin: so like i said, generally minor things, but if an app happens to rely on one of them, it can be unfortunate.
14:42 imirkin: if you run into issues, please report
14:42 zeq: visual corruption likely then?
14:42 imirkin: thankfully the G80 is nothing (in terms of gotchas) compared to R600 though
14:43 imirkin: R600 (the original) is so bad, they couldn't even expose GL 3.0 on it
14:43 zeq: was it intended to be GL3.0?
14:43 imirkin: well, DX10
14:43 imirkin: so GL 3.3
14:43 imirkin: R600 was the competitor to the G80
14:44 imirkin: (which was rushed out the door, i suspect, hence all the problems)
14:44 zeq: I had a quiet period in GPU terms in that era.
14:46 zeq: Matrox (since that's where the early Linux 3D efforts were), then various ATIs.
14:46 imirkin: ooooh
14:46 imirkin: actually i just had an idea for fixing the gl_VertexID thing
14:46 zeq: cool
14:46 imirkin: if you're interested in testing stuff out, i can whip up a patch
14:47 zeq: Absolutely.
14:47 karolherbst: imirkin: mhh found an areay where it also happens with the lod settings on lowest... but it has to be like really near to the viewer
14:47 imirkin: but it'll require (a) rebuilding mesa and (b) grabbing piglit
14:47 imirkin: karolherbst: i wonder if we're configuring aniso settings properly
14:48 karolherbst: well I can play with any setting here and try what affects that flickering
14:48 zeq: imirkin: that's no problem, I'm on Gentoo :)
14:48 imirkin: ok cool.
14:48 karolherbst: one thing for sure: if I don't move, the flicker state doesn't change
14:49 imirkin: zeq: here's the patch (to mesa): http://hastebin.com/usokamuqah.m
14:49 imirkin: zeq: grab piglit, and run ... (this will take me a minute to find)
14:50 zeq: Imirkin: at least I should have a better chance of having the G80 work well compared to the NV35 ;)
14:51 imirkin: zeq: bin/gl-3.2-basevertex-vertexid -fbo -auto
14:51 imirkin: zeq: i have a NV34 plugged in [for testing]
14:52 imirkin: but yeah, a NV34 + modern desktop would probably not work so great
14:52 imirkin: in part because the NV3x series is a piece of shit, but also in large part because the nouveau nv3x mesa driver is a hunk of junk
14:53 zeq: imirkin: yeah I noticed that
14:53 zeq: NV35 wasn't *that* bad
14:53 imirkin: the hw is early DX9, which means it can't even do GL 2.0 properly
14:54 imirkin: the nvidia blob driver exposes 2.0, but if you do anything slightly off, it'll fall off the fast path
14:54 zeq: compared to the NV34 anyway :)
14:54 zeq: I remember at the time, the NV34 was widely derided
14:54 imirkin: it's the same architecture
14:55 zeq: where as the NV35 was I remember considered a somewhat fixed version
14:55 zeq: my memory might be a bit fuzzy though
14:55 imirkin: NV35 had one feature the other nv3x's don't have ...
14:55 imirkin: the depth bounds test :)
14:55 imirkin: which iirc is heavily used by quake or doom or one of those games
14:55 zeq: and much better performance
14:55 zeq: maybe that was why
14:56 zeq: I used to play a lot of UT2004 back then
14:57 imirkin: i think in 2004 i was still using my r100 ati video card, with VIVO :)
14:57 imirkin: which worked in linux, to my vast surprise
14:57 zeq: the nv35 was definitely better than the original Radeon :)
14:58 imirkin: which meant i could use my computer monitor as a dreamcast screen :)
14:58 zeq: I used an R200 for years and years though
14:58 karolherbst: imirkin: what do you mean by "aniso"?
14:58 imirkin: karolherbst: anisotropic filtering
14:58 karolherbst: ahhh
14:58 karolherbst: mhh
14:58 karolherbst: I have that disabled though
14:59 imirkin: karolherbst: hm. ok. next theory.
14:59 karolherbst: keep in mind: I run it on the lowest possible settings currently
15:00 karolherbst: allthough some settings can't be disabled like parallaxing
15:01 zeq: The FX 5900 was the only NVidia card I ever bought though, excluding the NVS in my laptop.
15:01 karolherbst: ohhh :O
15:02 karolherbst: imirkin: changing parallaxing settings also has a kind of big impact on the issue
15:03 karolherbst: yep
15:03 karolherbst: imirkin: parallexing mapping: Low+ -> flickering on the ground; none -> no flickering on the ground
15:05 Rush__: I wonder how CPU involving reverse PRIME is? I am observing display lags if I'm doing CPU intensive things like compiling, watching youtube etc. Could running LTO Mesa binaries bring any improvements?
15:05 karolherbst: none
15:05 karolherbst: nearly none
15:06 Rush__: so I gather all the buffer transfer magic happens on the GPU, nice
15:06 karolherbst: Rush__: what your issue is, is mainly responsiveness of the system
15:06 karolherbst: Rush__: well, it is a frame copy over the PCIe bus
15:08 imirkin: Rush__: with reverse prime, the mouse cursor has to be composited onto the image, probably by the cpu - it's not efficient.
15:08 Rush__: karolherbst: could giving more priority to X process help in this case? what's weird is I don't recall my issuess to be so big when running without Optimus and NVIDIA blob along. Generally I'm seeeing better responsiveness than my previous setup. It's just when things are busy it can become vastly more unresponsive than previous setup.
15:09 karolherbst: Rush__: mhh, well I never used reverse prime, but I doubt that impact is noticeable...
15:09 karolherbst: imirkin: any ideas about parallaxing mapping? afaik it is some viewport based texture transformation, no idea how that maps to glsl or hardware
15:10 imirkin: karolherbst: as with all these things, the name doesn't really matter. it's not like it's some core GL feature they're using/not using
15:10 zeq: Rush__: I think all you can do is make sure you have every PCIe performace option is enabled for the relevant devices, perhaps adjust the latency?
15:10 imirkin: karolherbst: it's a question of wtf the thing actually does, and why it's messing up nouveau.
15:11 karolherbst: "#if defined(HAS_PARALLAX)" :3
15:11 imirkin: zeq: let me know if you end up testing that piglit out on your G80
15:11 karolherbst: and a PARALLAX_METHOD edfine
15:11 karolherbst: awesome
15:11 karolherbst: :D
15:11 karolherbst: I like those shaders
15:11 Rush__: zeq: this is a thinkpad t420 so BIOS options are really poor
15:11 zeq: Mesa is still rebuilding, it will take a while. The machine isn't the quickest...
15:11 imirkin: zeq: it should fail before my patch, and should work after my patch
15:11 karolherbst: imirkin: is there any way to enfore specific values of macros?
15:11 imirkin: zeq: no rush
15:11 imirkin: karolherbst: they are #defined at the top
15:12 imirkin: karolherbst: one could also adjust glcpp to predefine them
15:12 karolherbst: yeah, but I would like to overwrite them in the compiler
15:13 karolherbst: uhhhh
15:14 karolherbst: "static const float sc_fParallaxSteps = float(PARALLAX_STEPS);" could that mess up?
15:14 karolherbst: PARALLAX_STEPS is an int value
15:14 karolherbst: mhhh
15:15 karolherbst: ohhhh
15:15 karolherbst: :O
15:15 karolherbst: ouch
15:15 karolherbst: okay, I hope that thing won't be 0 at any point
15:15 imirkin: karolherbst: it's not a core compilation issue, since it works fine on (a) nv50 and (b) radeonsi
15:15 karolherbst: ahh okay
15:16 karolherbst: so nvc0+ only
15:16 imirkin: as far as i know, yes
15:16 imirkin: try it on your NVAC
15:16 karolherbst: good idea
15:19 karolherbst: "vOffset.z = 1.0f- saturate( fViewDist2 / (float(PARALLAX_STEPS*PARALLAX_STEPS)*25.0f*25.0f));" funny :D
15:20 karolherbst: imirkin: something odd with our ddx/ddy things?
15:20 karolherbst: they seem to use that quite a lot for parallaxing
15:20 imirkin: i mean... are you asking me, "could there potentially be something odd with dfdx/dfdy"? then yes. there could potentially be something off.
15:20 imirkin: but i'd say that about nearly anything
15:21 karolherbst: I see
15:24 karolherbst: where would I predefine macro values in glcpp?
15:24 imirkin: search for add_builtin_define()
15:25 karolherbst: k, thanks
15:26 karolherbst: mhh what happens if I predfine something to 0 and the glsl code has #define something 2?
15:33 karolherbst: huehuehue https://i.imgur.com/84e8JrK.png
15:34 karolherbst: mhh odd
15:34 karolherbst: you can still notice the flickering
15:36 karolherbst: this is most likely caused by a /0 operation
15:36 karolherbst: or not :O
15:53 karolherbst: imirkin: yeah, looks okay on nvac
15:56 karolherbst: I think I know what I will do now
16:00 uramekus: hi people, yesterday i was playing some CSGO using nouveau then my gpu hanged up and i didnt had any video at all, since then in trying to fix it but it seems that the gpu got completely broken, can anyone give me advice before i throw it in the trash can?
16:00 uramekus: that is my dmesg, seems really bad http://pastebin.com/5rFsicm0
16:02 imirkin: uramekus: have you tried doing a cold reboot?
16:04 imirkin: i.e. power the thing off for a bit, then turn back on?
16:05 uramekus: yes
16:05 imirkin: uramekus: i'd definitely try with blob driver and see if it can load ok
16:05 imirkin: if even it can't load, then you're sunk
16:06 imirkin: uramekus: also maybe try re-seating it in the pcie slot
16:07 imirkin: anyways, sorry, no great ideas =/
16:07 karolherbst: uramekus: do you reclock on boot or something like that?
16:07 uramekus: nope, only enable nouveau pstate, but i only reclock when needed
16:07 karolherbst: I see
16:08 Klinnex: hi
16:09 uramekus: imirkin: ive already removed it and opened it, ive tried to see if anything was burnt in the circuit
16:09 Klinnex: I tried nouveau with debian and ubuntu on gtx 750 ti and i have got artifacts from top to almost bottom
16:09 imirkin: Klinnex: what xorg version?
16:09 Klinnex: artifacts means the screen looks broken, random white, yellow and green pixels all around the screen
16:09 Klinnex: standard installed with recent debian jessie and ubuntu
16:10 Klinnex: with lxde or gnome/unity
16:10 imirkin: Klinnex: i haven't the faintest clue what version they ship, nor am i particularly interested in searching myself
16:10 Klinnex: Well I am going to install debian right now.
16:11 imirkin: anyways, here are a few fun facts:
16:11 uramekus: Klinnex: go on your terminal (tty2 or via SSH) and exec "Xorg -Version"
16:11 imirkin: (a) xf86-video-nouveau does not support GM107, it is supported by xf86-video-modesetting
16:11 Klinnex: gm107 includes gtx 750 ti stormx?
16:11 imirkin: (b) xf86-video-modesetting is shipped as part of Xorg (nowadays) and uses GLAMOR to accelerate X operations, which is a GL-based acceleration implementation
16:12 Klinnex: its like reading chinese while being japanese
16:12 imirkin: (c) GLAMOR manages to hit some undiagnosed issue on nouveau's GL driver backend
16:12 Klinnex: it would be the best if i could make a picture of the artifacts
16:12 imirkin: (d) i'm told that in recent versions of GLAMOR and/or nouveau GL backend, the issues no longer come up
16:13 Klinnex: so i will be back in no time
16:13 imirkin: you can find out what chip you have by doing "lspci -nn -d 10de:"
16:13 imirkin:&
16:13 uramekus: im installing propietary drivers right now, i hope nouveau is broken and not my gpu LOL
16:13 uramekus: brb
16:13 Klinnex: i am writing both commands on paper
16:15 karolherbst: imirkin: ........... this is a big wtf... at some point in the frame, it looks right and it gets messed up later
16:15 karolherbst: and this happens in like the last 100 gl calls
16:18 Klinnex: brb
16:19 karolherbst: ohh wrong frame...
16:29 glennk: karolherbst, most likely that parallax define is set by the engine from code depending on game settings
16:29 karolherbst: yeah
16:30 glennk: that one in particular tends to be a bit heavy so presumably not enabled on the lower quality settings
16:30 uramekus: no video in prop driver ://///
16:30 karolherbst: glennk: yeah most likly, I also feed in values the shader wasn't written against
16:31 glennk: how expensive parallax mapping is also tends to be pretty data and viewing angle dependent
16:32 karolherbst: :O
16:33 karolherbst: I found now two calls where the same hting is rendered
16:33 karolherbst: but
16:33 karolherbst: the output differes allthough it shouldn't
16:33 karolherbst: the fragment shader is the same
16:33 karolherbst: but
16:33 karolherbst: the vertex shader on the right call has a "#define HAS_NORMAL_MAP 1" more
16:34 karolherbst: otherwise the vertex shaders are the same
16:34 karolherbst: ohh
16:34 karolherbst: I might have looked at the wrong draw call again
16:35 karolherbst: doesn't matter
16:35 karolherbst: same shaders
16:35 karolherbst: okay
16:35 karolherbst: so the wrong thing misses that define
16:38 karolherbst: mhh
16:38 uramekus: wasnt even able to see my POST or enter in UEFI
16:38 uramekus: so my gpu is oficially unusable? (not dead, can see on lspci and even updated the firmware)
16:39 karolherbst: uramekus: you could try to unplug it or totally electrically unload your entire machine
16:40 uramekus: how much time should i wait?
16:41 Klinnex: hi again, im back
16:41 Klinnex: http://www.pixhoster.info/f/2016-06/829088734f0ca577cac44c8c8812e8cb.jpg
16:41 Klinnex: http://www.pixhoster.info/f/2016-06/2cb26f184e55efb0419b8f0a96ea9683.jpg
16:41 Klinnex: this is how it looks
16:41 Klinnex: dirty artifacts
16:41 Klinnex: tested on tails no root
16:42 uramekus: its not xorg, its Xorg
16:42 Klinnex: sh*t
16:42 Klinnex: is this very important? do i have to reboot again?
16:43 Klinnex: wait
16:43 uramekus: wait
16:43 Klinnex: the second command has gm107
16:43 Klinnex: and that guy told that gm107 is not part of nouveau
16:43 karolherbst: Klinnex: it's not part of the ddx
16:43 uramekus: its not part of xf86-video-nouveau
16:44 uramekus: remove it from your system, xorg has a integrated driver that will work fine
16:44 Klinnex: with gtx 750 ti?
16:44 Klinnex: so i have to reboot to tails with root enabled and use sudo apt-get remove xorg-xf86-nouveau ?
16:45 uramekus: yup, it only wont work if your xorg version is too much old or you are using a old kernel
16:45 uramekus: i think in debian its xserver-xorg-video-nouveau, i use arch so im not 100% sure
16:46 Klinnex: hm, you know what i will turn on other pc and boot this one to tails so i can operate with you live
16:47 uramekus: hey Karol, is 970 fine to use now with nouveau? or still worse compared to an 770?
16:47 karolherbst: imirkin: but you are right, that game is just so broken on nvc0+ :/
16:47 uramekus: already looking to replace my card
16:48 karolherbst: uramekus: the only think I can say is, that keplers _can_ work pretty good
16:51 uramekus: welp, my PSU cant handle an 780ti, used to have a 770 but now is oficially dead, it seems that i will have to spend money on a downgrade or use the propietary drivers
16:51 uramekus: but i prefer using windows or mac osx than using linux + prop drivers
16:51 karolherbst: well
16:51 karolherbst: you should unplug your gpu for a few minutes
16:52 karolherbst: or bake it in the oven! :p
16:52 karolherbst: allthough I am sure that won't do on newer cards anymore
16:52 imirkin_: uramekus: no reclocking with GM20x. and until recently, no accel at all.
16:52 imirkin_: uramekus: if you're looking at buying a new gpu, i'd recommend amd - it's much better supported than nouveau
16:58 karolherbst: imirkin_: the wrong frame does two calls in addition: "glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAG_FILTER, param = GL_LINEAR)" and "1274471 @0 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MIN_FILTER, param = GL_LINEAR)"
16:59 karolherbst: ohh wait
16:59 karolherbst: the other does that too, just earlier
16:59 imirkin_: we could be missing a TSC flush
16:59 imirkin_: or we could be doing that flush incorrectly
17:04 karolherbst: mhhh
17:04 karolherbst: maybe yeah
17:04 karolherbst: because the stuff looks the same API wise
17:05 karolherbst: well one uniform is set differently
17:05 karolherbst: but it is also within a different frame, so it should have valid reasons
17:08 karolherbst: mhh a "glFrontFace(mode = GL_CW)" is fone before the draw
17:19 zeq: imirkin: failed
17:21 zeq: imirkin: http://pastebin.com/Wtf74DA6
17:21 imirkin_: zeq: that's with my patch applied? :(
17:21 zeq: imirkin: I'll make sure it applied... hang on
17:22 zeq: imirkin: yep. with the patch
17:23 imirkin_: ok :(
17:23 imirkin_: i thought that should have worked.
17:23 imirkin_: there might be deeper vertex id issues
17:24 imirkin_: these are the failures from ... like a year ago: https://people.freedesktop.org/~imirkin/nv50-comparison/problems.html
17:24 zeq: imirkin: shall I perform a full piglit run?
17:24 imirkin_: this is the type of crap i'm talking about btw: https://people.freedesktop.org/~imirkin/nv50-comparison/nv50-2015-07-09-hakzsam/spec@arb_vertex_buffer_object@ib-subdata-sync.html
17:25 imirkin_: that "WRONG_MEMTYPE" thing
17:25 imirkin_: that's not a thing on G84+
17:25 zeq: hw bugs?
17:25 imirkin_: no, sw bugs
17:25 imirkin_: but as a result of the hw being different :)
17:26 imirkin_: and since ~no one actually has these G80's
17:26 imirkin_: not a ton of effort has gone into fixing them
17:26 imirkin_: anyways, you can see how it compares to the rest of the tesla family
17:27 zeq: yeah... GTX 8800's were pretty expensive and quickly superseded I suppose
17:27 imirkin_: (at that nv50-comparison link)
17:27 imirkin_: nv50 = G80
17:28 imirkin_: nva0 = G200
17:28 imirkin_: oh right... the sprite coord stuff is messed up there too
17:28 imirkin_: coz they decided to change how it was all indexed on G84+
17:28 imirkin_: (guess which mapping style nv50 implements)
17:30 zeq: presumably the change was an improvement in some way??
17:30 imirkin_: dunno, i haven't RE'd exactly how nv50 does it
17:30 imirkin_: i just know it's different
17:31 imirkin_: but anyways, hopefully it's working better than a NV35 with a modern desktop
17:31 imirkin_: and if you're interested in fixing G80-specific issues, let me know, i'd be happy to give some pointers
17:31 zeq: oh it's definitely doing that! the nv35 just fails due to no NPOT texture implementation
17:32 Klinnex: hi, im back
17:32 Klinnex: so Xorg -version printed 1.16.4 (2014-12-20
17:33 imirkin_: Klinnex: ah yeah. you definitely want 1.18.x
17:33 Klinnex: damn, then i need reboot coz i disabled network in tails :D
17:33 Klinnex: and also there is no package xf86-video-nouveau
17:33 Klinnex: and xf86-xorg-nouveau isnt there either
17:33 imirkin_: there is. but your distro probably helpfully renamed it
17:33 Klinnex: ive read about xserver-xorg-video-nouveau
17:33 zeq: imirkin: I'm happy to do what I can. My C skills are okay, and I know the graphics stack well enough, but I'm a bit ignorant about OpenGL/graphics APIs generally...
17:34 imirkin_: in order to reduce confusion :)
17:34 Klinnex: right
17:34 Klinnex: the only instructions i found were involving kernel rebuild
17:34 zeq: I could do something about that I suppose
17:34 imirkin_: zeq: not an issue. i started in nouveau having 0 knowledge of modern GL
17:34 imirkin_: [but also i wasn't trying to do graphics stuff, my first contribution was VP2 decoding]
17:35 zeq: I spent yesterday evening trying to fix the MGA DDX driver fwiw :-)
17:35 imirkin_: how'd that go
17:36 zeq: The UseFBDev support has been broken for a long time, the option is tested before the option table is processed. So I fixed that up but there's more broken. At least it fails differently now ;-)
17:37 imirkin_: hehe
17:37 zeq: I don't think it gets much use
17:37 zeq: certainly not on a mga1064sg with fbdev
17:38 Klinnex: ok so do i have to first do apt-get update && apt-get dist-upgrade and then manually install newest xorg, and after all that remove xserver-xorg-video-nouveau?
17:38 zeq: maybe I should look at adding 1064sg support to the matrox kms driver instead
17:38 imirkin_: Klinnex: removing xserver-xorg-video-nouveau is unnecessary - it just won't do anything.
17:38 zeq: off topic here anyway ...
17:39 Klinnex: so only update and dist upgrade?
17:39 imirkin_: Klinnex: sorry, i don't do distro support
17:39 imirkin_: if you need help operating your distro, ask in a distro support channel
17:39 Klinnex: right
17:42 glennk: 1064sg, is that the nerfed display-only "mga" device they like to put in blade servers?
17:44 karolherbst: imirkin_: you can't think of any dirty trick we could try out for talos?
17:45 imirkin_: karolherbst: plenty
17:45 imirkin_: i've already tried them :)
17:45 karolherbst: :D
17:45 karolherbst: okay, and besides those you tried out?
17:46 zeq: glennk: it's a Matrox Mystique 220 - it's one of the first 3D GPUs
17:46 glennk: oh, pre g200
17:46 zeq: yep
17:46 imirkin_: as if there even were such a time
17:47 glennk: i remember it being around ati mach64 level in what it accelerated
17:47 zeq: https://en.wikipedia.org/wiki/Matrox_Mystique
17:48 imirkin_: my favorite game from that era - megarace
17:49 glennk: g400 is pretty much the oldest matrox thing that can run a compositor
17:53 zeq: it has *much* better idle power consumption than the low-end radeonhd I had in the system previously
17:54 zeq: hd4350 I think
17:57 Klinnex: i am downloading lxle maybe it will have newest version of xorg and artifacts won't show
17:58 imirkin_: Klinnex: if you want to play with a livecd, you can try pmoreau's at https://nouveau.pmoreau.org/
17:58 Klinnex: has it got newest version of xorg?
17:58 imirkin_: it has the newest version of everything that matters
17:59 imirkin_: (the super-newest version... usually from git)
17:59 Klinnex: ok, i am downloading it now
18:00 Klinnex: hope my nvidia will start to work properly so i can switch proprietary windows 10 for cooling open source debian jessie :)
18:04 Klinnex: guys
18:04 Klinnex: 5 minutes ago there was new patch for diablo 2
18:04 Klinnex: amazing :P
18:05 Yoshimo: again?
18:07 glennk: zeq, yeah evergree/NI are much better than hd4xxx on idle power consumption
18:10 karolherbst: imirkin_: okay, no idea, it has to do with us. one odd thing though: in the wrong frame, the missrendered wall is the first wall part ever rendered in that frame. I guess something gets flushed too late maybe? Or too late updated on the gpu or something stupid like that
18:15 glennk: interaction with fast clear perhaps?
18:15 karolherbst: glennk: do you know the issue we are talking about?
18:15 karolherbst: the flickering wall thing
18:16 glennk: no
18:16 karolherbst: wait a sec
18:17 karolherbst: glennk: that's one part of the issue: https://drive.google.com/open?id=0B78S7GSrzebIRmE0Sm1helRBa00
18:18 glennk: hmm, is that shadow map updated just prior to that draw call?
18:19 karolherbst: no idea
18:19 glennk: looks like the shadow map has front/back face culling backwards
18:21 imirkin_: glennk: does winsys vs fbo have any effect on front/back faceness? no, right?
18:22 imirkin_: anyways, there *is* an issue with texturing from a cleared surface
18:22 imirkin_: i do have a patch to fix it
18:23 imirkin_: https://github.com/imirkin/mesa/commit/bdae97d8d25e628d57121a9f5b7a876a625c9597
18:24 karolherbst: let me guess, it would be if that would fix it, because we don't have the issue on nv50 in the first place
18:25 Klinnex: ok i used dd to make that iso of nouveau livecd and there is isolinux.bin error, means uefi related stuff?
18:26 Klinnex: nevermind all fixed :)
18:26 karolherbst: Klinnex: uhh I doubt the gentoo livecd has uefi support
18:26 Klinnex: i used bios boot instead of uefi
18:26 karolherbst: well I never installed gentoo from a gentoo live cd anyway
18:27 Klinnex: ok so there is root on arch tty, now should i use startx?
18:27 Klinnex: nice, black screen with mouse pointer
18:27 Klinnex: and no artifacts :)
18:27 Klinnex: jesus christ its great :D
18:27 Klinnex: no artifacts :>
18:28 Klinnex: what a beauty of open source engineering :]
18:28 root_: its me
18:28 root_: Klinnexx
18:30 karolherbst: imirkin_: I think this patch fixes _some_ stuff
18:31 Klinnex: ok so now i only need to know wheter i will be able to install debian with the version of xorg that was on that livecd that you guys suggested me
18:31 glennk: imirkin_, well, y flips direction
18:31 karolherbst: imirkin_: okay, it seems like it fixes nothing
18:31 karolherbst: maybe on higher quality setings, who knows
18:32 karolherbst: glennk: the ground stuff is part of the parallaxing settings
18:32 karolherbst: only happens when parallaxing mapping is enabled
18:33 karolherbst: if I would have to count there are like 5 or 6 different visual issues, maybe all with the same cause though
18:33 glennk: hmm, something with explicit derivatives then?
18:33 root_: anyway thanks for help guys, no artifacts :)
18:33 karolherbst: glennk: well it works on nv50+ gpus
18:34 glennk: i know darkplaces parallax mapping gets different results with coarse vs fine derivatives
18:38 karolherbst: glennk: well no idea, I still have to learn all that stuff. I can just make either bad or good guesses and hope something changes :D
18:43 imirkin_: glennk: right, but the faceness shouldn't be any different right?
18:44 imirkin_: esp coz the y flip is on the rasterized thing, while faceness is based on the polygon winding which is way before any sort of raster
18:44 imirkin_: glennk: we only have fine derivatives... non-fine derivatives would take more effort
18:57 imirkin_: karolherbst: oh hm, i probably need to stick a serialize in there too
18:57 imirkin_: before the TEX_CACHE_CTL thing
19:26 karolherbst: imirkin_: SERIALIZE(?);?
19:26 imirkin_: karolherbst: yes.
19:26 imirkin_: karolherbst: have a look at nvc0_texture_barrier in nvc0_context.c
19:26 karolherbst: ahh
19:27 karolherbst: IMMED_NVC0(push, NVC0_3D(SERIALIZE), 0);
19:27 karolherbst: in front of all TEX_CACHE_CTL?
19:34 imirkin_: karolherbst: i wonder if this also wants a serialize before it: https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c#n476
19:34 karolherbst: before "if (unlikely(s == 5))"?
19:34 imirkin_: yes
19:35 imirkin_: anyways, you can just stick in a call to texture barrier in nvc0_draw_vbo() somewhere
19:35 imirkin_: which should have the effect of things moving like molasses
19:35 imirkin_: but at least it'd be a good test to see if we're missing it somewhere
19:36 karolherbst: where inside nvc0_draw_vbo?
19:37 imirkin_: after the call to validate
19:37 imirkin_: before other stuff
19:38 karolherbst: k
19:40 karolherbst: mhh
19:40 karolherbst: doesn't help a thing
19:41 karolherbst: that is what I changed on top of your change: https://gist.github.com/karolherbst/e10c0f6f806f610244f3edf03e9805ae
19:42 karolherbst: maybe we should just do the most brute force way possible which may make performance real bad, but should help with like everyhing :D
19:43 karolherbst: mhhh
19:44 karolherbst: but it may behave more like a state issue, not like a single draw call goes wrong or something like that
19:44 karolherbst: because this is always like the entire frame is messed and never partly
19:45 karolherbst: and also
19:45 karolherbst: it doesn't happen randomly
19:45 karolherbst: it highly depends on where you are standing in game
19:45 karolherbst: and in which direction you look
20:09 hakzsam: karolherbst, this issue is hard to track down :)
20:13 imirkin_: i spent _quite_ a while on it
20:15 hakzsam: :)
20:32 karolherbst: imirkin_: maybe we just go the wrong way. Maybe we have to break nv50 the same way to know what we do wrong in nvc0 :)
20:32 hakzsam: have fun :)
20:37 karolherbst: imirkin_: would it help to get the path mesa goes with the messed up draw call?
20:37 hakzsam: karolherbst, what draw call are you talking about?
20:37 karolherbst: in the trace
20:37 imirkin_: karolherbst: i tried to figure it out, and i failed. i have no additional information to provide.
20:37 hakzsam: sure, which one?
20:38 karolherbst: in my trace wrong: 1273145 right: 1347719
20:38 karolherbst: both calls draw the same thing
20:38 karolherbst: just a bit different
20:38 hakzsam: did you check with apitrace diff-state?
20:38 karolherbst: well
20:38 karolherbst: for funny reasons the order the objects are drawn is different
20:39 karolherbst: but if you compare the the previous draw calls of both, you will see what I mean
20:39 hakzsam: "a bit different", ok :)
20:41 hakzsam: anyways, hard to figure out
20:43 karolherbst: yeah
20:43 karolherbst: the color is different
20:43 hakzsam: yep
20:44 hakzsam: imirkin_, same issue on kepler I guess?
20:44 hakzsam: I mean *exactly* ?
20:44 karolherbst: hakzsam: I shall give you a screenshot
20:44 imirkin_: hakzsam: not *exactly* - it's a lot more flickery on kepler than i remember it being on fermi
20:45 hakzsam: mmh
20:45 hakzsam: karolherbst, I have a trace
20:45 hakzsam: *the travce
20:45 karolherbst: https://i.imgur.com/EVtTRRi.png
20:46 hakzsam: okay
20:46 karolherbst: though now i am not sure what is the right thing :O
20:47 karolherbst: there is a filter drawn on top of the scene later...
20:47 karolherbst: intel to the rescue then
20:47 karolherbst: intel looks like 1347719
20:48 karolherbst: better check 1273145 too
20:49 karolherbst: yep, on intel 1273145 looks different
21:24 karolherbst: hakzsam: before you dig too much time into talos, you could also check my dual issue stuff :p I think I will try to break it somehow on my nvac or check what code paths are used and try to think about something
21:30 hakzsam: karolherbst, yep, anyway I won't figure out today :)
21:31 hakzsam: it would be very nice to be able to compare each parameters of every draw call between two frames
21:31 hakzsam: but it seems like that apitrace diff-state doesn't do exactly what I want
21:32 hakzsam: and "apitrace diff" doesn't seem to help too
21:38 karolherbst: well
21:39 karolherbst: mhh
21:39 karolherbst: yeah maybe that would help, but somewhat I doubt that
22:56 imirkin_: https://www.opengl.org/registry/specs/NV/stereo_view_rendering.txt
22:56 imirkin_: i guess that's the cool new pascal thing?
23:01 karolherbst: sounds like it
23:04 karolherbst: yay
23:04 karolherbst: GLX over vnc
23:04 karolherbst: mhh why only softpipe though
23:11 karolherbst: now it works :)
23:17 karolherbst: wow
23:17 karolherbst: it renders decently fast too
23:23 karolherbst: imirkin_: ehm...
23:23 karolherbst: I think with recent master talos broke on nv50
23:23 imirkin_: aka i broke it?
23:24 karolherbst: ERROR: operation should have been lowered
23:24 karolherbst: well I will do a clean build on master to confirm it
23:24 karolherbst: OpenGL over vnc is really awesome :)
23:34 karolherbst: imirkin_: okay, seems like unclean build striked again :/
23:36 imirkin_: or one of your patches? :p
23:37 karolherbst: nope, I didn't touch the tgsi to something thing :p
23:37 hakzsam: maybe, it's me :)
23:37 hakzsam: imirkin_, anyway, we should do a full piglit before the official release
23:38 hakzsam: I did on fermi and kepler
23:38 hakzsam: but not on tesla
23:38 imirkin_: yes ... we ...
23:38 hakzsam: you have a tesla plugged in your box right? :p
23:38 karolherbst: well now I have to find a way how to debug that special draw call in gdb...
23:38 imirkin_: i do, but i don't want my box to die
23:38 imirkin_: which is usually what happens when i run piglit
23:38 hakzsam: should not die
23:38 imirkin_: you're right. should not.
23:38 hakzsam: at least, it doesn't on my gf119
23:39 karolherbst: well I could run it over the night
23:39 karolherbst: just tell me what I should do
23:41 karolherbst: but I don't have that fancy f64 stuff I think?
23:42 imirkin_: that's ok, i never flipped on fp64 for tesla
23:42 karolherbst: I see
23:42 karolherbst: just have to build all the deps first and piglit
23:42 karolherbst: if you tell me how I should start piglit I will start it then