Am Dienstag, den 10.02.2009, 19:01 +0100 schrieb Matthias Hopf:
Comparing for a particular line is definitely better, because you can wait for the first line after the visible area, which might be earlier than vblank due to overscan. Ok, implemented it as you suggested. Patch is attached.
You can push a type-3 packet that writes the current GPU 64bit counter into some memory address as soon as the pipeline is finished (and this actually even doesn't stall the engine). Is there some documentation of the type-3 packets available for r6xx? I've found the docs for r5xx, but can't find any thing mentioned about it in the r6xx isa and register documentations. Am i missing something?
What i had in mind was reading out the horizontal and vertical count register before draw_auto and after wait_3d_idle, so i could calc how much time a specific operation needs in terms of pixel clock and/or vertical scanout. For this i need copy operation from a register to a memory address, but i don't know if that is possible with an cp opcode. Bye, Christian.