02:21pmoreau: imirkin: Updating my userspace graphic stack to Git version. I'll retest Portal, see if I can reproduce the misrenderer portals on my G96 and send you screenshot + apitrace. :-)
04:05pmoreau: imirkin: http://imgur.com/dG5lBBt
04:23pmoreau: How does one make a useful apitrace? I made one which consists of one frame + its context but it ends up being ~485k calls...
07:18hakzsam: mwk, --^
07:18pmoreau: hakzsam: Cool!
07:19hakzsam: I started this tool two years ago, it's time to see it in envytools :)
08:00pmoreau: imirkin: Here is the apitrace: https://phabricator.pmoreau.org/F5697 Tell me if I need to trim it further or need more info
08:16joi: hakzsam: parsing demmt output from C is... sad
08:19hakzsam: joi, sure :) but if you tell me how to improve that part using demmt functions, I'll do
08:19hakzsam: it was much simpler for me to do it that way
08:22joi: I'd vote for merging it and fixing it later
08:23hakzsam: sounds good
08:24hakzsam: so, demmt exports some functions to parse a file directly? I didn't take a look at this
08:24hakzsam: but It would be good to get rid of popen() ;)
08:24joi: yeah, parsing core is shared between demmt and mmt_bin2dedma
08:25hakzsam: ok good
08:26hakzsam: once the pull request is merged, I'll fix it
08:34joi: hakzsam: license/copyright headers are missing
08:34joi: and cupti_trace.c
08:34joi: and cupti_trace.c header is worrying...
08:37hakzsam: why do you think it's worrying? this tool is based on cupti which is provided by NVIDIA..
08:41joi: it's worrying because it does not tell where this code came from
08:42joi: did original file have a license header?
08:45hakzsam: I started this tool from scratch but some parts are inspired from cupti_query which has a one-line license header
08:45hakzsam: I don't know if it needs to be added or not, I'm not a lawyer :)
08:47joi: can I see the original file?
08:49joi: heh, it doesn't even have a license...
08:49hakzsam: but what it's that copyright stuff then?
08:50joi: it just states who is the copyright owner
08:51hakzsam: so, we have the right to redistribute the code?
08:51joi: in theory, if there's no other file which tells how it's licensed, you are not allowed to use it
08:53hakzsam: in practice?
08:56hakzsam: with the header I added to cupti_trace.c, everything is fine, right?
09:00joi: no, every code file should have a copyright and license
09:00hakzsam: joi, ?
09:00hakzsam: cuda_sample.cu too?
09:02hakzsam: joi, like this for cupti_trace.c http://paste.awesom.eu/Husf ?
09:04joi: without license it's useless - nobody can use it...
09:04pmoreau: Isn't without license == no license == do whatever you want with it?
09:05mjg59: Without license == no license == you can only do what local copyright law says you can do with it
09:06hakzsam: joi, okay, so that tool has to be private ? it cannot be merged to envytools?
09:06mjg59: The license grants you permissions that you wouldn't otherwise have
09:07joi: hakzsam: you could contact nvidia and ask what is the license for this file
09:08hakzsam: mmh okay
09:09hakzsam: and do I need to remove the pull request since it's public now?
09:11joi: I think closing it should be enough
09:18hakzsam: but well, if I don't have the right to write source code which uses the cupti API, that's makes no sense
09:20hakzsam: anyways, I could remove the query stuff part of cupti_trace
09:52imirkin: hakzsam: where is the original from? there is probably a LICENSE file around it
09:53hakzsam: and there is no file around for CUPTI samples
09:53hakzsam: there is one for CUDA
09:56imirkin: what package did that CUPTI dir come from?
09:58hakzsam: don't worry, I'm removing the parts of that tool which uses code from NVIDIA ;)
10:00imirkin: licensing stuff sucks :(
10:01imirkin: pmoreau: please make that trace available somewhere
10:01imirkin: pmoreau: please also try older versions
10:01imirkin: (of mesa)
10:01pmoreau: Isn't the link working?
10:01imirkin: oh. heh. it is. my brain isn't :)
10:02pmoreau: How old should I try?
10:02imirkin: but do try older versions of mesa to see if this is something i broke recently
10:02imirkin: oh, andd.... try the *very* latest git version
10:02imirkin: i.e. after that query fix
10:03imirkin: i dunno, mesa 10.1 should be good to try out
10:03imirkin: if that's broken, try 9.2
10:03pmoreau: How recent was the query fix? I pulled about 8-9h ago
10:03imirkin: oh, it was older than that
10:06imirkin: [and i have portal now, so i can test it myself too]
10:07pmoreau: [But you would have to plug-in your card :p ]
10:07imirkin: i should have done it when i rebooted the other day
10:08imirkin: but... i have these hopes that i'll get back to tess at some point, and maybe images/counters, which require the nvc0
10:08pmoreau: Well, having tess would be great too! Even if I won't be able to use that on my cards.
10:09imirkin: i have a branch for it... waiting on the core bits to land
10:10imirkin: glennk: any idea how portal works wrt showing the things inside its portals? is it just an extra render from the viewpoint of the other portal?
10:27glennk: imirkin, try stepping through an apitrace frame
10:28imirkin: glennk: i was hoping you'd know off-hand. that's what i'll do...
11:00RSpliet: ugh... my motherboard hates NV50
11:01RSpliet: unless it has more hidden power plugs I missed
11:01imirkin: did you plug in enough PCIe power connectors?
11:01imirkin: it needs like 37 of them
11:01imirkin: just hook it up to a nuclear power plant, that should be enough
11:03imirkin: The 8800 GTX was also very power hungry for its time, demanding up to 185 watts of power and requiring two 6-pin PCI-E power connectors to operate.
11:03RSpliet: yeah, this GTS one only has one plug
11:04RSpliet: (the NVA0 has 2... so in that perspective yes, 2 * NV50 = NVA0)
11:04RSpliet: there's a red light glowing on the GPU
11:05imirkin: is it fire?
11:05RSpliet: well, I hope it's just the warning light that it's running low on petrol
11:05imirkin: pour some more in maybe? :)
11:06RSpliet: wait... is there seriously a "low on power" light on there
11:07pmoreau: There are one led on each of the 980's power plug: red if it's not connected, white otherwise
11:07RSpliet: heh, well, this led is on the other side of the card, and... I'm fairly sure it's really really really plugged in
11:08pmoreau: Maybe you have something like that?
11:08tobijk: if it boots you should be allright :D
11:08RSpliet: it doesn't
11:09imirkin: moar power!
11:10RSpliet: it's already getting max power
11:11RSpliet: so far for my evening
11:11imirkin: max power doesn't abbreviate!
11:11imirkin: each letter is as important as the previous one! no, more! no... as.
11:12RSpliet: *does not
11:25hakzsam: imirkin, joi, I'm going to ask github staff to remove the previous pull request, the new one doesn't contain any source code provided by NVIDIA
11:25hakzsam: but I still have to write a script for tracing all events
11:27hakzsam: because I can't list cupti events anymore :)
11:31hakzsam: request sent
11:38hakzsam: oh, github staff is really fast :)
15:08imirkin: pmoreau: hm, well that trace replays fine for me on nvc0
15:08imirkin: pmoreau: i guess that's expected
15:08pmoreau: It replays fine on my MCP79 as well; just the G96 doesn't want to display it correctly
15:09imirkin: that sucks.
15:10pmoreau: I'll try tomorrow some old Mesa version