[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Allocation of video RAM



On 05/31/2010 06:01 PM, Johan Klockars wrote:

> In my opinion, having the VDI take care of it makes sense. The default
> could then be that the VDI has exclusive access to the entire screen
> (After all, no one else even knows that there is any memory there
> until someone configures the video card, and that would normally be
> the VDI.). It could then allow applications to get their own slices
> when asked for.

If the VRAM adress space can be accessed by the CPU without resorting to
tricks, the VRAM can be added to MiNT's memory space using Maddalt. It
will then be available using normal M(x)alloc-calls. However, to
specifically allocate VRAM you'd have to add another mode though. I
don't know how much work that will require.

> Obviously, the VDI should do the memory mapping by calling lower level
> functions, though.

Yes, and the VDI must also work before MiNT is loaded so it has to
handle both cases.

>> But the VDI does afaik not cater for texture mapping, or even alpha blits.
> 
> But we definitely should add at least the latter. Perhaps we already

Isn't that implemented in NVDI 5?

Jo Even