Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4baf7a52
Commit
4baf7a52
authored
Sep 11, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Sep 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move video memory override to init_driver_info.
parent
192e0dc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
directx.c
dlls/wined3d/directx.c
+7
-5
wined3d_main.c
dlls/wined3d/wined3d_main.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/directx.c
View file @
4baf7a52
...
...
@@ -1225,6 +1225,12 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
}
}
if
(
wined3d_settings
.
emulated_textureram
)
{
TRACE_
(
d3d_caps
)(
"Overriding amount of video memory with: %d byte
\n
"
,
wined3d_settings
.
emulated_textureram
);
driver_info
->
vidmem
=
wined3d_settings
.
emulated_textureram
;
}
/* Try to obtain driver version information for the current Windows version. This fails in
* some cases:
* - the gpu is not available on the currently selected OS version:
...
...
@@ -5209,11 +5215,7 @@ static BOOL InitAdapters(IWineD3DImpl *This)
hdc
=
fake_gl_ctx
.
dc
;
/* Use the VideoRamSize registry setting when set */
if
(
wined3d_settings
.
emulated_textureram
)
adapter
->
TextureRam
=
wined3d_settings
.
emulated_textureram
;
else
adapter
->
TextureRam
=
adapter
->
driver_info
.
vidmem
;
adapter
->
TextureRam
=
adapter
->
driver_info
.
vidmem
;
adapter
->
UsedTextureRam
=
0
;
TRACE
(
"Emulating %dMB of texture ram
\n
"
,
adapter
->
TextureRam
/
(
1024
*
1024
));
...
...
dlls/wined3d/wined3d_main.c
View file @
4baf7a52
...
...
@@ -70,7 +70,7 @@ wined3d_settings_t wined3d_settings =
RTL_READTEX
,
/* Default render target locking method */
PCI_VENDOR_NONE
,
/* PCI Vendor ID */
PCI_DEVICE_NONE
,
/* PCI Device ID */
0
,
/* The default of memory is set in
FillGLCaps
*/
0
,
/* The default of memory is set in
init_driver_info
*/
NULL
,
/* No wine logo by default */
FALSE
,
/* Disable multisampling for now due to Nvidia driver bugs which happens for some users */
FALSE
,
/* No strict draw ordering. */
...
...
dlls/wined3d/wined3d_private.h
View file @
4baf7a52
...
...
@@ -1432,7 +1432,6 @@ struct wined3d_gl_limits
struct
wined3d_gl_info
{
DWORD
glsl_version
;
UINT
vidmem
;
struct
wined3d_gl_limits
limits
;
DWORD
reserved_glsl_constants
;
DWORD
quirks
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment