* [PATCH 1/2] intel_dump_decode: Actually parse the -d option
@ 2013-11-22 17:33 Damien Lespiau
2013-11-22 17:33 ` [PATCH 2/2] intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variable Damien Lespiau
2013-11-28 14:40 ` [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
0 siblings, 2 replies; 3+ messages in thread
From: Damien Lespiau @ 2013-11-22 17:33 UTC (permalink / raw)
To: intel-gfx
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
tools/intel_dump_decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c
index a3cd2e5..959ec87 100644
--- a/tools/intel_dump_decode.c
+++ b/tools/intel_dump_decode.c
@@ -168,7 +168,7 @@ main (int argc, char *argv[])
{"binary", 0, 0, 'b'}
};
- while((c = getopt_long(argc, argv, "ab",
+ while((c = getopt_long(argc, argv, "ad:b",
long_options, &option_index)) != -1) {
switch(c) {
case 'd':
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variable
2013-11-22 17:33 [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
@ 2013-11-22 17:33 ` Damien Lespiau
2013-11-28 14:40 ` [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
1 sibling, 0 replies; 3+ messages in thread
From: Damien Lespiau @ 2013-11-22 17:33 UTC (permalink / raw)
To: intel-gfx
This is the one that already works in libdrm, so don't disappoint people
coming with expectations.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
tools/intel_dump_decode.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c
index 959ec87..a8dcca0 100644
--- a/tools/intel_dump_decode.c
+++ b/tools/intel_dump_decode.c
@@ -158,6 +158,7 @@ int
main (int argc, char *argv[])
{
uint32_t devid = 0xa011;
+ char *devid_str = NULL;
int i, c;
int option_index = 0;
int binary = -1;
@@ -168,11 +169,13 @@ main (int argc, char *argv[])
{"binary", 0, 0, 'b'}
};
+ devid_str = getenv("INTEL_DEVID_OVERRIDE");
+
while((c = getopt_long(argc, argv, "ad:b",
long_options, &option_index)) != -1) {
switch(c) {
case 'd':
- devid = strtoul(optarg, NULL, 0);
+ devid_str = optarg;
break;
case 'b':
binary = 1;
@@ -186,6 +189,9 @@ main (int argc, char *argv[])
}
}
+ if (devid_str)
+ devid = strtoul(devid_str, NULL, 0);
+
ctx = drm_intel_decode_context_alloc(devid);
if (optind == argc) {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] intel_dump_decode: Actually parse the -d option
2013-11-22 17:33 [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
2013-11-22 17:33 ` [PATCH 2/2] intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variable Damien Lespiau
@ 2013-11-28 14:40 ` Damien Lespiau
1 sibling, 0 replies; 3+ messages in thread
From: Damien Lespiau @ 2013-11-28 14:40 UTC (permalink / raw)
To: intel-gfx
On Fri, Nov 22, 2013 at 05:33:41PM +0000, Damien Lespiau wrote:
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
No screams, pushed the 2 commits.
--
Damien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-28 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-22 17:33 [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
2013-11-22 17:33 ` [PATCH 2/2] intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variable Damien Lespiau
2013-11-28 14:40 ` [PATCH 1/2] intel_dump_decode: Actually parse the -d option Damien Lespiau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox