Changeset 63025 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine_new
- Timestamp:
- Aug 5, 2016 1:58:31 AM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine_new
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/Makefile.kmk
r63024 r63025 44 44 # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch 45 45 # -wd4305: 'function' : truncation from 'double' to 'GLclampf' 46 TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(filter-out -WX,$(TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS)) -wd4100 -wd4204 -wd4245 -wd4305 46 # -wd4305: 'function' : truncation from 'double' to 'GLclampf' 47 # -wd4018: '>' : signed/unsigned mismatch 48 # -wd4389: '!=' : signed/unsigned mismatch 49 # -wd4221: nonstandard extension used : 'render_targets' : cannot be initialized using address of automatic variable 'dst_surface' 50 # -wd4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) 51 # -wd4267: 'function' : conversion from 'size_t' to 'GLsizei', possible loss of data 52 TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(filter-out -WX,$(TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS)) \ 53 -wd4100 -wd4204 -wd4245 -wd4305 -wd4018 -wd4389 -wd4221 -wd4334 -wd4267 47 54 48 55 # -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8/device.c
r48345 r63025 36 36 #define NONAMELESSUNION 37 37 #define NONAMELESSSTRUCT 38 #ifdef VBOX 39 # include "d3d8_private.h" /* Must include windows stuff with COBJMACROS defined. */ 40 #endif 38 41 #include "windef.h" 39 42 #include "winbase.h" … … 2465 2468 } 2466 2469 2467 hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, data_size);2470 hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, (UINT *)data_size); 2468 2471 wined3d_mutex_unlock(); 2469 2472 … … 2709 2712 } 2710 2713 2711 hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, data_size);2714 hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, (UINT *)data_size); 2712 2715 wined3d_mutex_unlock(); 2713 2716 … … 3071 3074 HRESULT hr; 3072 3075 3073 device->IDirect3DDevice8_iface.lpVtbl = &d3d8_device_vtbl;3076 device->IDirect3DDevice8_iface.lpVtbl = (struct IDirect3DDevice8Vtbl *)&d3d8_device_vtbl; 3074 3077 device->device_parent.ops = &d3d8_wined3d_device_parent_ops; 3075 3078 device->ref = 1; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8/directx.c
r48345 r63025 36 36 #define NONAMELESSUNION 37 37 #define NONAMELESSSTRUCT 38 #ifndef VBOX 38 39 #include "windef.h" 39 40 #include "winbase.h" 40 41 #include "wingdi.h" 41 42 #include "winuser.h" 43 #else 44 # include <iprt/win/windows.h> 45 #endif 42 46 #include "wine/debug.h" 43 47 #include "wine/unicode.h" … … 416 420 DWORD flags = WINED3D_LEGACY_DEPTH_BIAS | WINED3D_VIDMEM_ACCOUNTING; 417 421 418 d3d8->IDirect3D8_iface.lpVtbl = &d3d8_vtbl;422 d3d8->IDirect3D8_iface.lpVtbl = (struct IDirect3D8Vtbl *)&d3d8_vtbl; 419 423 d3d8->refcount = 1; 420 424 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/VBoxDbgGl.c
r62522 r63025 304 304 GLint curTex = 0; 305 305 int iLevel; 306 struct gl_texture *pGlTex;306 struct gl_texture const *pGlTex; 307 307 const struct wined3d_texture *pTexture = (const struct wined3d_texture*)pDevice->stateBlock->state.textures[iStage]; 308 308 … … 348 348 Assert(surface->texture_target == pTexture->target); 349 349 Assert(surface->texture_name == (pTexture->flags & WINED3D_TEXTURE_IS_SRGB) ? pTexture->texture_srgb.name : pTexture->texture_rgb.name); 350 NOREF(surface); 350 351 #if 0 351 352 if (pSurf->flags & SFLAG_INSYSMEM && !pSurf->Flags & SFLAG_PBO) -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include/wine/debug.h
r63017 r63025 32 32 33 33 #include <stdarg.h> 34 #ifndef VBOX_WINE_WITHOUT_LIBWINE 34 35 #include <windef.h> 36 #else 37 # include <iprt/win/windows.h> 38 #endif 35 39 #ifndef GUID_DEFINED 36 40 #include <guiddef.h> -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/arb_program_shader.c
r51270 r63025 4232 4232 /* Base Declarations */ 4233 4233 shader_generate_arb_declarations(shader, reg_maps, buffer, gl_info, 4234 &priv_ctx.vs_clipplanes, &priv_ctx);4234 (DWORD *)&priv_ctx.vs_clipplanes, &priv_ctx); 4235 4235 4236 4236 for(i = 0; i < MAX_CONST_I; i++) -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/buffer.c
r51270 r63025 371 371 BOOL support_d3dcolor = adapter->gl_info.supported[ARB_VERTEX_ARRAY_BGRA]; 372 372 BOOL support_xyzrhw = adapter->d3d_info.xyzrhw; 373 #ifdef VBOX_WITH_WINE_FIX_BUFOFFSET 374 DWORD stride_this_run = 0; 375 DWORD offset_this_run = 0; 376 #else 373 377 UINT stride_this_run = 0; 374 #ifdef VBOX_WITH_WINE_FIX_BUFOFFSET375 UINT offset_this_run = 0;376 378 #endif 377 379 BOOL ret = FALSE; … … 866 868 struct wined3d_context *context; 867 869 BOOL decl_changed = FALSE; 870 #ifndef VBOX_WITH_WINE_FIX_BUFOFFSET 868 871 unsigned int i, j; 872 #endif 869 873 BYTE *data; 870 874 #ifdef VBOX_WITH_WINE_FIX_BUFOFFSET 875 unsigned int j; 871 876 BYTE *cur_ptr; 872 877 UINT conv_start, conv_end; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/context.c
r63021 r63025 792 792 if (backup || !wglMakeCurrent(ctx->hdc, ctx->glCtx)) 793 793 #else 794 if (!wglMakeCurrent( ctx->swapchain->hDC, ctx->glCtx))794 if (!wglMakeCurrent(swapchain->hDC, ctx->glCtx)) 795 795 #endif 796 796 { … … 804 804 #else 805 805 WARN("Failed to make GL context %p current on device context %p, last error %#x.\n", 806 ctx->glCtx, ctx->swapchain->hDC, GetLastError());806 ctx->glCtx, swapchain->hDC, GetLastError()); 807 807 #endif 808 808 ctx->valid = 0; … … 1628 1628 struct wined3d_context *ret; 1629 1629 BOOL auxBuffers = FALSE; 1630 HGLRC ctx, share_ctx; 1630 HGLRC ctx; 1631 #ifndef VBOX 1632 HGLRC share_ctx; 1633 #endif 1631 1634 int pixel_format; 1632 1635 unsigned int s; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/directx.c
r63024 r63025 1775 1775 const char *gl_renderer) 1776 1776 { 1777 #ifndef VBOX_WITH_WDDM 1777 1778 UINT d3d_level = d3d_level_from_gl_info(gl_info); 1779 #endif 1778 1780 unsigned int i; 1779 1781 … … 1877 1879 } 1878 1880 1881 #ifndef VBOX_WITH_WDDM 1879 1882 /* Both the GeforceFX, 6xxx and 7xxx series support D3D9. The last two types have more 1880 1883 * shader capabilities, so we use the shader capabilities to distinguish between FX and 6xxx/7xxx. … … 1973 1976 1974 1977 return CARD_NVIDIA_RIVA_TNT; /* Riva TNT, Vanta */ 1978 #endif /* !VBOX_WITH_WDDM */ 1975 1979 } 1976 1980 … … 1978 1982 const char *gl_renderer) 1979 1983 { 1984 #ifndef VBOX_WITH_WDDM 1980 1985 UINT d3d_level = d3d_level_from_gl_info(gl_info); 1986 #endif 1981 1987 1982 1988 /* See http://developer.amd.com/drivers/pc_vendor_id/Pages/default.aspx … … 2073 2079 } 2074 2080 2081 #ifndef VBOX_WITH_WDDM 2075 2082 if (d3d_level >= 9) 2076 2083 { … … 2110 2117 2111 2118 return PCI_DEVICE_NONE; 2119 #endif /*!VBOX_WITH_WDDM*/ 2112 2120 } 2113 2121 … … 2651 2659 static void load_gl_funcs(struct wined3d_gl_info *gl_info) 2652 2660 { 2653 #define USE_GL_FUNC(pfn) (*(PROC *) (&gl_info->gl_ops.ext.p_##pfn)) = wglGetProcAddress(#pfn);2661 #define USE_GL_FUNC(pfn) (*(PROC *)&gl_info->gl_ops.ext.p_##pfn) = wglGetProcAddress(#pfn); 2654 2662 GL_EXT_FUNCS_GEN; 2655 2663 #undef USE_GL_FUNC … … 5343 5351 ALL_WGL_FUNCS 5344 5352 # undef USE_GL_FUNC 5345 gl_info->gl_ops.wgl.p_wglSwapBuffers = (void *)GetProcAddress(mod_gl, "wglSwapBuffers");5353 *(FARPROC *)&gl_info->gl_ops.wgl.p_wglSwapBuffers = GetProcAddress(mod_gl, "wglSwapBuffers"); 5346 5354 } 5347 5355 #else -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/resource.c
r48345 r63025 99 99 ) 100 100 { 101 #ifndef VBOX_WITH_WDDM 101 102 const struct wined3d *d3d = device->wined3d; 103 #endif 102 104 103 105 resource->ref = 1; … … 184 186 void resource_cleanup(struct wined3d_resource *resource) 185 187 { 188 #ifndef VBOX_WITH_WDDM 186 189 const struct wined3d *d3d = resource->device->wined3d; 190 #endif 187 191 struct private_data *data; 188 192 struct list *e1, *e2; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/surface.c
r52329 r63025 655 655 { 656 656 struct wined3d_device *device = surface->resource.device; 657 const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;657 // const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; 658 658 DWORD alloc_flag = SFLAG_ALLOCATED; 659 659 // DWORD alloc_flag = srgb ? SFLAG_SRGBALLOCATED : SFLAG_ALLOCATED; … … 749 749 if (VBOXSHRC_IS_SHARED_OPENED(surface)) 750 750 { 751 struct wined3d_gl_info *gl_info = &surface->resource.device->adapter->gl_info;751 //struct wined3d_gl_info *gl_info = &surface->resource.device->adapter->gl_info; 752 752 ERR("should not be here!"); 753 753 surface->texture_name = (GLuint)VBOXSHRC_GET_SHAREHANDLE(surface); -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/vboxext.c
r63017 r63025 283 283 284 284 285 static HRESULT vboxExtInit( )285 static HRESULT vboxExtInit(void) 286 286 { 287 287 HRESULT hr = S_OK; … … 307 307 308 308 309 static HRESULT vboxExtWndCleanup( );310 311 static HRESULT vboxExtTerm( )309 static HRESULT vboxExtWndCleanup(void); 310 311 static HRESULT vboxExtTerm(void) 312 312 { 313 313 HRESULT hr = vboxExtWndCleanup(); … … 502 502 #define VBOXEXTWND_NAME "VboxDispD3DWineWnd" 503 503 504 static HRESULT vboxExtWndDoCleanup( )504 static HRESULT vboxExtWndDoCleanup(void) 505 505 { 506 506 HRESULT hr = S_OK; … … 685 685 } 686 686 687 static HRESULT vboxExtWndCleanup( )687 static HRESULT vboxExtWndCleanup(void) 688 688 { 689 689 HRESULT hr; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/wined3d_gl.h
r63021 r63025 208 208 209 209 210 #define VBOX_USE_GL_FUNC(pfn) p##pfn = (void *)wglGetProcAddress(#pfn); 210 /* Right, we just have to do things our own way some undisclosed reason. sigh. */ 211 #define VBOX_USE_GL_FUNC(pfn) (*(PROC *)&(p##pfn)) = wglGetProcAddress(#pfn); 211 212 212 213 # define VBOX_GL_FUNCS_GEN \ -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/wined3d_main.c
r48345 r63025 340 340 wined3d_settings.always_offscreen = FALSE; 341 341 } 342 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelVS", &wined3d_settings.max_sm_vs))342 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelVS", (DWORD *)&wined3d_settings.max_sm_vs)) 343 343 TRACE("Limiting VS shader model to %u.\n", wined3d_settings.max_sm_vs); 344 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelGS", &wined3d_settings.max_sm_gs))344 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelGS", (DWORD *)&wined3d_settings.max_sm_gs)) 345 345 TRACE("Limiting GS shader model to %u.\n", wined3d_settings.max_sm_gs); 346 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelPS", &wined3d_settings.max_sm_ps))346 if (!get_config_key_dword(hkey, appkey, "MaxShaderModelPS", (DWORD *)&wined3d_settings.max_sm_ps)) 347 347 TRACE("Limiting PS shader model to %u.\n", wined3d_settings.max_sm_ps); 348 348 if (!get_config_key(hkey, appkey, "DirectDrawRenderer", buffer, size)
Note:
See TracChangeset
for help on using the changeset viewer.