[ddraw] more video memory
Oliver Stieber
oliver_stieber at yahoo.co.uk
Thu Jan 27 07:52:03 CST 2005
--- Raphael <fenix at club-internet.fr> wrote:
There's a couple of other places that report the
amount of video memory, GetAvaialbleVideoMemory in
d3d, and static DDHALINFO hal_info in X11ddraw.c
Is there somewhere where we can centralise the
possibly tracking of video memory and read the initial
setting from either a configuration file or the video
cards i2c or registers if available instead of hard
coding in three+ different places?
I've got some agpgart code for detecting AGP memory
usage and the DRI guys will probably have code for
getting the 'real' video memory figures for some
cards.
> Hi,
>
> Changelog:
> - set default video memory to 64Mb (was 16Mb) as
> many d3d9 demos use d3d7
> code to get available video memory size (ex
> ConfigSystem.exe on d3d9 sdk)
>
> Todo:
> - autodetect this value (better than hardcoded) and
> share it using wined3d
>
> Regards,
> Raphael
> > Index: main.c
>
===================================================================
> RCS file: /home/wine/wine/dlls/ddraw/ddraw/main.c,v
> retrieving revision 1.58
> diff -u -r1.58 main.c
> --- main.c 9 Jan 2005 17:35:44 -0000 1.58
> +++ main.c 27 Jan 2005 00:22:42 -0000
> @@ -118,7 +118,7 @@
> /* This is for the moment here... */
> This->free_memory = free_memory;
> This->allocate_memory = allocate_memory;
> - This->total_vidmem = 16 * 1024 * 1024;
> + This->total_vidmem = 64 * 1024 * 1024;
> This->available_vidmem = This->total_vidmem;
>
> return DD_OK;
>
> ATTACHMENT part 2 application/pgp-signature
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
More information about the wine-devel
mailing list