On 11/18/2013 03:22 PM, Kenneth Graunke wrote:
> On 11/18/2013 12:27 PM, Eric Anholt wrote:
[snip]
>> I think the old structs worked OK, and there are
>> some minor downsides to access-everything-through-methods, like being
>> unable to just print the instruction in gdb and see fields all at once,
> 
> Huh.  I've never done that.  Is that something you actually do?  I
> imagine looking at the raw dump would be pretty huge, and a
> pretty-printer/disassembler would always be more useful...

In particular,
(gdb) p p->store[0]

prints 114 lines of text in a format that I find basically unreadable.
It also contains information in a redundant form, with sections that
only apply to G45, or Sandybridge, or...

So I'm having a hard time believing this is what you want.  I think a
print function which does something like:

opcode:       0x84
pad:          0
access_mode:  1
mask_control: 0
...

might be more useful...

OTOH,
(gdb) p p->store[0].header

prints a lot less data, and is pretty readable...

Or am I misunderstanding entirely?
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to