Garry Hurley wrote:
> Gentlemen, let me see if I understand this properly.  You want to
> create a finite number of states, store them in a list and switch
> amongst them on a whim, right?  If my understanding is correct, I am
> wondering how much data you are going to store in these states, and
> how many states you wish to create.  I mean, if you have only twenty
> states, each containing a few K of data, it doesn't seem like much,
> but if you want to put a megabyte in each state, that would restrict
> you to 64MB and greater for graphics cards - not really much of an
> issue with newer hardware, but there are a few 1MB cards still
> floating around in Linux boxes.  (I know, I have one or two.)  Also,
> having a large number of states to sort through might end up degrading
> performance if you have to search for the proper state each time,
> depending on the fetching algorithm.
> 
> These concerns are, of course, purely due to my not understanding what
> information you want to store in the state.  I can conceive of a
> single state which stores all pixel data - hardly useful - all the way
> down to one that stores only which VGA mode you are rendering the
> image with.  Can you point out where in this scale you are working?
> 
> Garry
> 

How storing state will done is yet to be determined but the idea is that
finding state with a given id would have to be fast, very fast. Each
state class will have at much 64dword and i think that there will be
somethings around 30 differents class so this isn't much memory and all.
And i don't expect to have more 100 entries per class, at least if i have
more then this class idea is wastefull and i will go the way of reuploading
all state each time.

Btw, this will be stored in system memory as there storing them in vram
would kill performance (the cmd are submited through system memory though i
think we can use vram).

Right now my target cards are r300, r400, r500 so all of them have
quite enough memory. That being said the infrastructure for supporting
older card is there and most of initialization code should work on
older card (down to r100) haven't tested yet but will do when i see
the need.

Cheers,
Jerome Glisse

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to