Hi,
Does the video controller program that is generated by
ogp/trunk/tools/oga1lib/oga1/progressive.c
generate interrupts?
It seems to contain the INT instruction in position 15
buffer[14]=ASM_SEND(((vp_width/pixperclock)),
((DATA_ENABLE)^flag_polarity));
buffer[15]=ASM_WAIT(((1)), ((VIDEO_INT)^flag_polarity));
buffer[16]=ASM_WAIT(((hfp/pixperclock)-1), ((RETURN)^flag_polarity));
but I don't understand this assembly good enough to figure out if this
is called for every frame.
I inserted ogp_skel.ko and use installed this program from userlevel
but I don't observe any output in dmesg of the form:
printk("OGP IRQ (%x %u)\n", status, ogp->irq_count++);
I think I have to do the opposite of this call:
// disable ints
oga1_card_rset(card, OGA1_VCn(head, INTERRUPT_ENABLE), 0x0);
This code is executed in oga1_set_video_mode
and I can't figure out what to set this to.
Just calling
oga1_card_rset(card, OGA1_VCn(head, INTERRUPT_ENABLE), 0x1);
doesn't help.
Maybe I have to write to OGA1_XP10_INTERRUPT_MASK ?
I found this quote on http://wiki.opengraphics.org/tiki-index.php?page=OGPN13:
Hardware support possible for Vblanking
Timothy:
vblank-oriented things ARE something I might want hardware support
for. If you can be sure you're staying just behind the vertical
retrace, you can draw directly to the screen without tearing and have
an entire frame to do it. However, many times, we will be drawing to a
back buffer and just swap front and back buffers in a vertical blank
interrupt, making that not so useful.
What is the current state?
Regards, Martin
--
Martin Kielhorn
Randall Division of Cell & Molecular Biophysics
King's College London, New Hunt's House
Guy's Campus, London SE1 1UL, U.K.
tel: +44 (0) 207 848 6519, fax: +44 (0) 207 848 6435
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)