Changeset 62948 in vbox
- Timestamp:
- Aug 4, 2016 6:58:58 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109551
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/shaderlib/directx.c
r57933 r62948 252 252 GL_EXTCALL(glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prog)); 253 253 GL_EXTCALL(glProgramStringARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, 254 strlen(testcode), testcode));254 (GLsizei)strlen(testcode), testcode)); 255 255 if(glGetError() != 0) { 256 256 TRACE("OpenGL implementation does not allow indirect addressing offsets > 63\n"); … … 494 494 GL_EXTCALL(glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prog)); 495 495 GL_EXTCALL(glProgramStringARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, 496 strlen(testcode), testcode));496 (GLsizei)strlen(testcode), testcode)); 497 497 glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos); 498 498 if(pos != -1) … … 1928 1928 BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter, struct VBOXVMSVGASHADERIF *pVBoxShaderIf) 1929 1929 { 1930 #ifndef VBOX_WITH_VMSVGA 1930 1931 struct wined3d_driver_info *driver_info = &adapter->driver_info; 1932 #endif 1931 1933 struct wined3d_gl_info *gl_info = &adapter->gl_info; 1932 1934 #ifndef VBOX_WITH_VMSVGA … … 1935 1937 #endif 1936 1938 const char *gl_vendor_str, *gl_renderer_str, *gl_version_str; 1939 #ifndef VBOX_WITH_VMSVGA 1937 1940 struct fragment_caps fragment_caps; 1941 #endif 1938 1942 enum wined3d_gl_vendor gl_vendor; 1939 1943 enum wined3d_pci_vendor card_vendor; … … 1942 1946 GLfloat gl_floatv[2]; 1943 1947 unsigned i; 1948 #ifndef VBOX_WITH_VMSVGA 1944 1949 HDC hdc; 1950 #endif 1945 1951 unsigned int vidmem=0; 1946 1952 DWORD gl_version; 1953 #ifndef VBOX_WITH_VMSVGA 1947 1954 size_t len; 1955 #endif 1948 1956 1949 1957 TRACE_(d3d_caps)("(%p)\n", gl_info); … … 2074 2082 check_gl_extension(gl_info, szCurExt); 2075 2083 } 2076 #else /* VBOX_WITH_VMSVGA */2084 #else /* !VBOX_WITH_VMSVGA */ 2077 2085 while (*GL_Extensions) 2078 2086 { … … 2101 2109 } 2102 2110 } 2103 #endif 2111 #endif /* !VBOX_WITH_VMSVGA */ 2104 2112 2105 2113 #ifdef VBOX_WITH_VMSVGA -
trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c
r60038 r62948 2014 2014 { 2015 2015 enum complex_fixup complex_fixup = get_complex_fixup(fixup); 2016 FIXME("Complex fixup (%#x) not supported\n",complex_fixup); 2016 FIXME("Complex fixup (%#x) not supported\n",complex_fixup); (void)complex_fixup; 2017 2017 return; 2018 2018 } … … 3640 3640 static void shader_glsl_texbem(const struct wined3d_shader_instruction *ins) 3641 3641 { 3642 IWineD3DBaseShaderImpl *shader = (IWineD3DBaseShaderImpl *)ins->ctx->shader;3643 IWineD3DDeviceImpl *deviceImpl = (IWineD3DDeviceImpl *)shader->baseShader.device; 3642 /*IWineD3DBaseShaderImpl *shader = (IWineD3DBaseShaderImpl *)ins->ctx->shader; 3643 IWineD3DDeviceImpl *deviceImpl = (IWineD3DDeviceImpl *)shader->baseShader.device; - unused */ 3644 3644 const struct wined3d_gl_info *gl_info = ins->ctx->gl_info; 3645 3645 const struct shader_glsl_ctx_priv *priv = ins->ctx->backend_data; -
trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/debug.c
r62934 r62948 177 177 for (i = 0; i < sizeof(debug_classes)/sizeof(debug_classes[0]); i++) 178 178 { 179 int len = strlen(debug_classes[i]);179 int len = (int)strlen(debug_classes[i]); 180 180 if (len != (p - opt)) continue; 181 181 if (!memcmp( opt, debug_classes[i], len )) /* found it */ … … 318 318 int interlocked_xchg_add( int *dest, int incr ) 319 319 { 320 return InterlockedExchangeAdd( dest, incr);320 return InterlockedExchangeAdd((LONG *)dest, incr); 321 321 } 322 322 #endif … … 347 347 static const char *default_dbgstr_an( const char *str, int n ) 348 348 { 349 static const char hex[16 ] = "0123456789abcdef";349 static const char hex[16+1] = "0123456789abcdef"; 350 350 char *dst, *res; 351 351 size_t size; … … 358 358 return res; 359 359 } 360 if (n == -1) n = strlen(str);360 if (n == -1) n = (int)strlen(str); 361 361 if (n < 0) n = 0; 362 362 size = 10 + min( 300, n * 4 ); -
trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/include/wine/debug.h
r53201 r62948 315 315 316 316 #define WINE_DECLARE_DEBUG_CHANNEL(ch) \ 317 static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }317 static struct __wine_debug_channel __wine_dbch_##ch = { /* was: ~0, VBox:*/ UINT8_MAX, #ch } 318 318 #define WINE_DEFAULT_DEBUG_CHANNEL(ch) \ 319 static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }; \319 static struct __wine_debug_channel __wine_dbch_##ch = { /* was: ~0, VBox:*/ UINT8_MAX, #ch }; \ 320 320 static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch 321 321 -
trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm1.c
r54765 r62948 424 424 while (opcode_table[i].handler_idx != WINED3DSIH_TABLE_SIZE) 425 425 { 426 if ((code & WINED3DSI_OPCODE_MASK) == opcode_table[i].opcode426 if ((code & WINED3DSI_OPCODE_MASK) == (DWORD)opcode_table[i].opcode 427 427 && shader_version >= opcode_table[i].min_version 428 428 && (!opcode_table[i].max_version || shader_version <= opcode_table[i].max_version)) -
trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_private.h
r62934 r62948 47 47 #include "winuser.h" 48 48 #else 49 # include <iprt/win/windows.h>49 # include <iprt/win/windows.h> 50 50 #endif 51 51 #include "wine/debug.h" -
trunk/src/VBox/Devices/Makefile.kmk
r62585 r62948 1453 1453 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib 1454 1454 $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D) 1455 # -wd4100: unreferenced format parameter 1456 # -wd4204: nonstandard extension used : non-constant initializer 1457 # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch 1458 # -wd4305: 'function' : truncation from 'double' to 'GLclampf' 1459 VBoxSVGA3D_CFLAGS.win = -wd4100 -wd4204 -wd4245 -wd4305 1455 1460 1456 1461 #
Note:
See TracChangeset
for help on using the changeset viewer.