- Online Community Forums » Programming Questions » address of bitmap in gpu

This thread is locked; no one can reply to it. rss feed Print
address of bitmap in gpu
Member #16,781
December 2017


using vcdbg reloc, i find this line:

0x391011e0: used 2.0M (refcount 1 lock count 0, size 2097152, align 4096, data 0x39102000, d1rual) 'Texture blob'

how can i find from C program (allegro5, Rpi) which image was al_load_bitmap() at that address ?


Member #3,861
September 2003

If you are not logging the associated pointer adress at the moment you got it, not way to easily get the information correlated to what vcdbg said.

What you can do is eventually check the bitmap sizes and see if one eventually have the same size as the vcdbg logged one.

That, or run your code in valgrind / dbx / whatever memory leak checked you want.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Chris Katko
Member #1,881
January 2002

I mean, if you had a modified malloc or manually kept a list of every bitmap as you make them, you could then search the list for matches / print it to stdout for debugging.

I don't think there's any way to "reverse a pointer" without doing extra work, or special tool.

“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

Go to: