Skip to content

Instantly share code, notes, and snippets.

@ssvb
Created January 12, 2013 22:18
Show Gist options
  • Save ssvb/4520736 to your computer and use it in GitHub Desktop.
Save ssvb/4520736 to your computer and use it in GitHub Desktop.
DRI2 communication with Mali r3p0 blob
The trace of DRI2 communication:
MaliDRI2CreateBuffer attachment=1 buffer=0xc09250, offs=0, name=83
MaliDRI2CreateBuffer attachment=0 buffer=0xc09290, offs=150, name=84
MaliDRI2ScheduleSwap (front->attachment=0,front->name=84) (back->attachment=1,back->name=83) 0xc09290 0xc09250
MaliDRI2CreateBuffer attachment=1 buffer=0xd130f8, offs=300, name=85
MaliDRI2CreateBuffer attachment=0 buffer=0xd06200, offs=450, name=86
MaliDRI2DestroyBuffer attachment=1 buffer=0xc09250
MaliDRI2DestroyBuffer attachment=0 buffer=0xc09290
MaliDRI2ScheduleSwap (front->attachment=0,front->name=86) (back->attachment=1,back->name=85) 0xd06200 0xd130f8
MaliDRI2ScheduleSwap (front->attachment=0,front->name=85) (back->attachment=1,back->name=86) 0xd06200 0xd130f8
MaliDRI2ScheduleSwap (front->attachment=0,front->name=86) (back->attachment=1,back->name=85) 0xd06200 0xd130f8
MaliDRI2ScheduleSwap (front->attachment=0,front->name=85) (back->attachment=1,back->name=86) 0xd06200 0xd130f8
MaliDRI2ScheduleSwap (front->attachment=0,front->name=86) (back->attachment=1,back->name=85) 0xd06200 0xd130f8
In fact we get two buffers rendered at offsets 0 and 300, weird %-/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment