https://bugs.freedesktop.org/show_bug.cgi?id=39010
--- Comment #4 from Andrew Randrianasulu <[email protected]> 2011-10-30 01:56:11 PDT --- (In reply to comment #3) > Created attachment 52905 [details] [review] > exa: set max dimensions based on available VRAM > > I found a solution! > > Since the VRAM size could vary inside each series of cards (e.g. NV10 cards > may > have 32, 64 or 128 MB VRAM), it would better to set max dimensions based on > available VRAM instead of card series. > > My proposed patch ensures that we always have enough space in VRAM to process > images. It fixes memory flush on 64 MB cards, and adds back exa support for > cards that have 32 MB or less memory (with a minimal 8 MB VRAM). > > I tested this patch only on NV17 with 64 MB VRAM. Hm .... but those limits may also reflect some hw (family-specific) limits? What about more complex check? Pseudo : if card_family == NV10 { if vram >= nv_10_min_ram : exa->maxX= 4096; else exa->maxX = 2046; } elseif card_family == NV50 { if vram >= nv_50_min_vram : exa->maxX = 8190; else exa->maxX = 4096; } exa->maxX = 2046 endif -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
