Welcome, Guest. Please login or register.

Author Topic: P96 RTG driver development for new hardware  (Read 16692 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
P96 RTG driver development for new hardware
« on: November 23, 2015, 04:01:42 PM »
Jim Drew and I have been working on an RTG implementation for the Replay (FPGAArcade) board.

I've implemented the display engine and dedicated blitter which is working fine, and the system is in a usable beta.

http://www.fpgaarcade.com/2015/11/21/amiga-rtg-graphics-card-working-and-in-beta/

The card driver is based on publicly available information, but we noticed the blitter is not used as much as expected.

To move forward, we would very much appreciate any details on the driver SDK or APIs for Picasso96.

This is not meant to be an open/closed/IP debate, I realize the waters are somewhat murky here, but to find a way forward which minimizes the amount of work and makes best use of the code currently available.

If Picasso96 is the best thing available now, it seems daft for us to re-invent the wheel when there are other fun things to be done.

/MikeJ
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #1 on: November 23, 2015, 04:26:59 PM »
Oh, I forgot to add I have developer hardware available at cost if anybody is interested in working on this (or any other) area. May have minor cosmetic issues etc - mail me if interested.
/MikeJ
 

Offline AJCopland

Re: P96 RTG driver development for new hardware
« Reply #2 on: November 23, 2015, 04:30:21 PM »
Just noticed when clicking on those images to see the bigger versions that the left image goes to:

http://www.fpgaarcade.com/wp4/wp-content/uploads/2015/11/rtg2.jpg

Instead of:
http://www.fpgaarcade.com/wp4/wp-content/uploads/2015/11/rtg1.jpg

As you probably intended.

All looking good and I hope that there is a good solution to all of this.

Andy
Be Positive towards the Amiga community!
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #3 on: November 23, 2015, 04:41:28 PM »
Strange. Seems to be fixed after a refresh. Thanks.
 

Offline OlafS3

Re: P96 RTG driver development for new hardware
« Reply #4 on: November 23, 2015, 04:49:35 PM »
Quote from: mikej;799466
Oh, I forgot to add I have developer hardware available at cost if anybody is interested in working on this (or any other) area. May have minor cosmetic issues etc - mail me if interested.
/MikeJ

Have you already contacted Toni about it? If someone has deep insight knowledge then he
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #5 on: November 23, 2015, 07:43:14 PM »
Quote from: OlafS3;799471
Have you already contacted Toni about it? If someone has deep insight knowledge then he


Not specifically, although Jim may have. I examined UAE of course when working on the first cut of the driver.
 

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: P96 RTG driver development for new hardware
« Reply #6 on: November 23, 2015, 08:33:01 PM »
I asked Toni some basic questions when we were trying to figure out the problem with monitor files not even appearing in the ScreenMode setup.

The UAEGFX monitor file source really doesn't help with the Picasso96 stuff.  It just gives you a basic monitor file skeleton (which is nice).  I am looking for info on the system patches that are available for replacement.  The PicassoIV monitor driver has a bunch in there - more than any other Picasso96 supported board.  I have disassembled the monitor file some, and I should be able to use the disassembly along with a few bits of source code from FUSION to figure out some of the system patches.  I have a PicassoIV board in my A3000, so I can look at system vectors as well and see what doesn't point to the normal Intuition/Graphics routines.
 

Offline kamelito

Re: P96 RTG driver development for new hardware
« Reply #7 on: November 24, 2015, 07:44:37 AM »
Quote from: JimDrew;799485
I asked Toni some basic questions when we were trying to figure out the problem with monitor files not even appearing in the ScreenMode setup.

The UAEGFX monitor file source really doesn't help with the Picasso96 stuff.  It just gives you a basic monitor file skeleton (which is nice).  I am looking for info on the system patches that are available for replacement.  The PicassoIV monitor driver has a bunch in there - more than any other Picasso96 supported board.  I have disassembled the monitor file some, and I should be able to use the disassembly along with a few bits of source code from FUSION to figure out some of the system patches.  I have a PicassoIV board in my A3000, so I can look at system vectors as well and see what doesn't point to the normal Intuition/Graphics routines.


@Jim
You could patch  setFuncrion() early in the SS (removing set patch if not needed for the test) and print which function is been patched and the name of the task doing it then you'll know.
Kamelito
« Last Edit: November 24, 2015, 07:49:21 AM by kamelito »
 

Offline kolla

Re: P96 RTG driver development for new hardware
« Reply #8 on: November 24, 2015, 09:27:40 AM »
Have you considered using AROS/m68k instead? It is quite capable. I have a plan to build a minimalistic OS3.1 like AROS distribution, targeting MIST and Minimig for now as those are systems I have.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

guest11527

  • Guest
Re: P96 RTG driver development for new hardware
« Reply #9 on: November 24, 2015, 10:15:50 AM »
Quote from: JimDrew;799485
I am looking for info on the system patches that are available for replacement.
This is completely irrelevant for driver development. P96 patches over half of gfx to get its services announced, but the monitor driver is unrelated to that. It is the rtg.library which does that. The monitor and card files are regular libraries that offer their services to the rtg.library and provide elementary services for programming the video chip on the card, and provide basic facilities for 2D hardware acceleration.
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #10 on: November 24, 2015, 11:51:34 AM »
Quote from: Thomas Richter;799504
This is completely irrelevant for driver development. P96 patches over half of gfx to get its services announced, but the monitor driver is unrelated to that. It is the rtg.library which does that. The monitor and card files are regular libraries that offer their services to the rtg.library and provide elementary services for programming the video chip on the card, and provide basic facilities for 2D hardware acceleration.

Thanks Thomas, that makes sense.

ORI.L   #(1<<15),(PSSO_BoardInfo_Flags,A2) ; BIF_BLITTER
        LEA     (BlitRectNoMaskComplete,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_BlitRectNoMaskComplete,A2)
        LEA     (BlitRect,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_BlitRect,A2)
        LEA     (WaitBlitter,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_WaitBlitter,A2)
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #11 on: November 24, 2015, 11:56:00 AM »
Thanks Thomas, that makes sense.

We need to look more into the card driver and make sure we are setting all the board info flags. For example, during setup ( InitCard: )

        ORI.L   #(1<<15),(PSSO_BoardInfo_Flags,A2) ; BIF_BLITTER
        LEA     (BlitRectNoMaskComplete,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_BlitRectNoMaskComplete,A2)
        LEA     (BlitRect,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_BlitRect,A2)
        LEA     (WaitBlitter,PC),A1
        MOVE.L  A1,(PSSO_BoardInfo_WaitBlitter,A2)

We only ever see blit calls with mode 12 (dst = src). This is all we have implemented, but would be good to know if we can do more.

Likewise, for supported modes
       ORI.W   #$3FF2,(PSSO_BoardInfo_RGBFormats,A2)

Seems to be correct, but I want to add additional formats so I need to figure out the bits I need. I'll have a read around, maybe the details on the BoardInfo struct are documented and I missed it.
 

Offline wawrzon

Re: P96 RTG driver development for new hardware
« Reply #12 on: November 24, 2015, 11:58:51 AM »
Quote from: kolla;799501
Have you considered using AROS/m68k instead? It is quite capable. I have a plan to build a minimalistic OS3.1 like AROS distribution, targeting MIST and Minimig for now as those are systems I have.


i think they are dismissing it since mikej said in the initial post:
"it seems daft for us to re-invent the wheel when there are other fun things to be done."
so i wouldnt try to pursue this further.

what concerns minimal aros that runs on an unexpanded amiga or the like, im also messing a bit with that. though currently im stuck because of few issues. for instance my desktop of choice, scalos is causing an illegal instruction fault. if you like we could make a separate thread on this subject.
 

Offline mikejTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: P96 RTG driver development for new hardware
« Reply #13 on: November 24, 2015, 12:01:59 PM »
"Have you considered using AROS/m68k instead? "
Happy for people to run whatever they wish! I can help with drivers etc as required.
 

Offline wawrzon

Re: P96 RTG driver development for new hardware
« Reply #14 on: November 24, 2015, 12:19:08 PM »
Quote from: mikej;799513
"Have you considered using AROS/m68k instead? "
Happy for people to run whatever they wish! I can help with drivers etc as required.


it is not a problem with aros68k, it will accept a driver in a p96 format if you succeed to build one;)
my aros proposal was only meant as general solution to a repeated problems different parties are facing. but i have created a separate thread in case anyone has something to say in the matter:
http://www.amiga.org/forums/showthread.php?t=70091
please let us stay on topic. im eager to see you succeed, mike.
« Last Edit: November 24, 2015, 12:22:15 PM by wawrzon »