DevVGA-SVGA3d-shared.cpp revision b2f884b6a137aa7f67cfeea03f4e9bc6f1e7d912
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * DevVMWare - VMWare SVGA device
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Copyright (C) 2013 Oracle Corporation
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * available from http://www.virtualbox.org. This file is free software;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * you can redistribute it and/or modify it under the terms of the GNU
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * General Public License (GPL) as published by the Free Software
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Header Files *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/* should go BEFORE any other DevVGA include to make all DevVGA.h config defines be visible */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Structures and Typedefs *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncstatic LONG WINAPI vmsvga3dWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Send a message to the async window thread and wait for a reply
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @returns VBox status code.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param pWindowThread Thread handle
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param WndRequestSem Semaphore handle for waiting
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param msg Message id
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param wParam First parameter
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param lParam Second parameter
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncint vmsvga3dSendThreadMessage(RTTHREAD pWindowThread, RTSEMEVENT WndRequestSem, UINT msg, WPARAM wParam, LPARAM lParam)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ret = PostThreadMessage(RTThreadGetNative(pWindowThread), msg, wParam, lParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AssertMsgReturn(ret, ("PostThreadMessage %x failed with %d\n", RTThreadGetNative(pWindowThread), GetLastError()), VERR_INTERNAL_ERROR);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rc = RTSemEventWait(WndRequestSem, RT_INDEFINITE_WAIT);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * The async window handling thread
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @returns VBox status code.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param pDevIns The VGA device instance.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param pThread The send thread.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncDECLCALLBACK(int) vmsvga3dWindowThread(RTTHREAD ThreadSelf, void *pvUser)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Register our own window class. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hInstance = GetModuleHandle("VBoxDD.dll"); /* @todo hardcoded name.. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Log(("RegisterClass failed with %x\n", GetLastError()));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync while (true)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AdjustWindowRectEx(&rectClient, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE | WS_CAPTION, FALSE, WS_EX_NOACTIVATE | WS_EX_NOPARENTNOTIFY | WS_EX_TRANSPARENT);
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync AssertMsg(*pHwnd, ("CreateWindowEx %x %s %s %x (%d,%d)(%d,%d), %x %x %x error=%x\n", pCS->dwExStyle, pCS->lpszName, VMSVGA3D_WNDCLASSNAME, pCS->style, pCS->x,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->y, pCS->cx, pCS->cy,pCS->hwndParent, pCS->hMenu, pCS->hInstance, GetLastError()));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AdjustWindowRectEx(&rectClient, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE | WS_CAPTION, FALSE, WS_EX_NOACTIVATE | WS_EX_NOPARENTNOTIFY | WS_EX_TRANSPARENT);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync BOOL ret = SetWindowPos(hwnd, 0, pCS->x, pCS->y, pCS->cx, pCS->cy, SWP_NOZORDER | SWP_NOMOVE);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Log(("GetMessage failed with %x\n", GetLastError()));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/* Window procedure for our top level window overlays. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncstatic LONG WINAPI vmsvga3dWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif /* RT_OS_WINDOWS */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Calculate the size of one pixel
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncuint32_t vmsvga3dSurfaceFormatSize(SVGA3dSurfaceFormat format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S10E5: /* 16-bit floating-point ARGB */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S23E8: /* 32-bit floating-point ARGB */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Any surface can be used as a buffer object, but SVGA3D_BUFFER is
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * the most efficient format to use when creating new surfaces
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * expressly for index or vertex data.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_3D";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_LIGHTS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_CLIP_PLANES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_VERTEX_SHADER_VERSION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_VERTEX_SHADER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_FRAGMENT_SHADER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_RENDER_TARGETS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_S23E8_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_S10E5_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_FIXED_VERTEXBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D16_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D24S8_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D24X8_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_QUERY_TYPES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_TEXTURE_GRADIENT_SAMPLING";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_POINT_SIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_SHADER_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_WIDTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VOLUME_EXTENT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_REPEAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_ASPECT_RATIO";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_PRIMITIVE_COUNT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_INDEX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_SHADER_INSTRUCTIONS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_INSTRUCTIONS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_INSTRUCTIONS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEMPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_TEXTURE_OPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MULTISAMPLE_NONMASKABLESAMPLES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_ALPHATOCOVERAGE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SUPERSAMPLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_AUTOGENMIPMAPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_SIMULTANEOUS_RENDER_TARGETS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_SIMULTANEOUS_RENDER_TARGETS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_CONTEXT_IDS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_SURFACE_IDS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_X8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A2R10G10B10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_X1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A4R4G4B4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R5G6B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24X8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_DF16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_DF24";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8_INT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BUMPX8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A2W10V10U10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BUMPU8V8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Q8W8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_CxV8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_RG_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_RG_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ARGB_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ARGB_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_V16U16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A16B16G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_UYVY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_YUY2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_NV12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_AYUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BC4_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BC5_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNEXPECTED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dGet3dFormatString(uint32_t format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_VOLUMETEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_CUBETEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_OFFSCREEN_RENDERTARGET)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_OFFSCREEN_RENDERTARGET\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_SAME_FORMAT_RENDERTARGET)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_SAME_FORMAT_RENDERTARGET\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_ZSTENCIL_WITH_ARBITRARY_COLOR_DEPTH)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_ZSTENCIL_WITH_ARBITRARY_COLOR_DEPTH\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_DISPLAYMODE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_3DACCELERATION\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_PIXELSIZE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_CONVERT_TO_ARGB\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_OFFSCREENPLAIN\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_MEMBEROFGROUP_ARGB\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_SRGBWRITE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_NOALPHABLEND\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_AUTOGENMIPMAP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_VERTEXTEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_NOTEXCOORDWRAPNORMIP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dGetRenderStateName(uint32_t state)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZWRITEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ALPHATESTENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DITHERENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SPECULARENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LIGHTINGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_NORMALIZENORMALS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSPRITEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILREF";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILWRITEMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZEMIN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZEMAX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALE_A";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALE_B";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALE_C";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_AMBIENT: /* SVGA3dColor - identical */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_AMBIENT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CLIPPLANEENABLE: /* SVGA3dClipPlanes - identical */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CLIPPLANEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FOGCOLOR: /* SVGA3dColor - identical */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGSTART";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGDENSITY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_RANGEFOGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FILLMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SHADEMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LINEPATTERN: /* SVGA3dLinePattern */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEPATTERN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SRCBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DSTBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_BLENDEQUATION: /* SVGA3dBlendEquation */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDEQUATION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CULLMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ALPHAFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILZFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILPASS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ALPHAREF";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FRONTWINDING: /* SVGA3dFrontWinding */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FRONTWINDING";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_COORDINATETYPE: /* SVGA3dCoordinateType */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_COORDINATETYPE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZBIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_COLORWRITEENABLE: /* SVGA3dColorMask */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_COLORWRITEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_VERTEXMATERIALENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_VERTEXMATERIALENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_DIFFUSEMATERIALSOURCE: /* SVGA3dVertexMaterial */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DIFFUSEMATERIALSOURCE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SPECULARMATERIALSOURCE: /* SVGA3dVertexMaterial */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SPECULARMATERIALSOURCE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_AMBIENTMATERIALSOURCE: /* SVGA3dVertexMaterial */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_AMBIENTMATERIALSOURCE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_EMISSIVEMATERIALSOURCE: /* SVGA3dVertexMaterial */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_EMISSIVEMATERIALSOURCE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_TEXTUREFACTOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LOCALVIEWER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SCISSORTESTENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILENABLE2SIDED: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILENABLE2SIDED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CCWSTENCILFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CCWSTENCILFAIL: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CCWSTENCILFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CCWSTENCILZFAIL: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CCWSTENCILZFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CCWSTENCILPASS: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CCWSTENCILPASS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_VERTEXBLEND: /* SVGA3dVertexBlendFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_VERTEXBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SLOPESCALEDEPTHBIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DEPTHBIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_OUTPUTGAMMA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZVISIBLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LASTPIXEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CLIPPING";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP6";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP7";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP9";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP11";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP13";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP14";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP15";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_MULTISAMPLEANTIALIAS: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_MULTISAMPLEANTIALIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_MULTISAMPLEMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_INDEXEDVERTEXBLENDENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_INDEXEDVERTEXBLENDENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_TWEENFACTOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ANTIALIASEDLINEENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ANTIALIASEDLINEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_COLORWRITEENABLE1: /* SVGA3dColorMask */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_COLORWRITEENABLE1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_COLORWRITEENABLE2: /* SVGA3dColorMask */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_COLORWRITEENABLE2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_COLORWRITEENABLE3: /* SVGA3dColorMask */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_COLORWRITEENABLE3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SEPARATEALPHABLENDENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SEPARATEALPHABLENDENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SRCBLENDALPHA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DSTBLENDALPHA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_BLENDEQUATIONALPHA: /* SVGA3dBlendEquation */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDEQUATIONALPHA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_TRANSPARENCYANTIALIAS: /* SVGA3dTransparencyAntialiasType */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_TRANSPARENCYANTIALIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEAA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEWIDTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dTextureStateToString(SVGA3dTextureStateName textureState)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BIND_TEXTURE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLOROP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAOP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSU";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MIPFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MAGFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MINFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BORDERCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXCOORDINDEX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURETRANSFORMFLAGS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXCOORDGEN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT00";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT01";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT11";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_MIPMAP_LEVEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_LOD_BIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_ANISOTROPIC_LEVEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSW";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_GAMMA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVLSCALE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVLOFFSET";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaTransformToString(SVGA3dTransformType type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_INVALID";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_VIEW";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_PROJECTION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE6";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE7";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclUsage2String(SVGA3dDeclUsage usage)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_POSITION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BLENDWEIGHT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BLENDINDICES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_NORMAL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_PSIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TEXCOORD";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TANGENT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BINORMAL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TESSFACTOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_POSITIONT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_COLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_FOG";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_DEPTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_SAMPLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclMethod2String(SVGA3dDeclMethod method)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_DEFAULT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_PARTIALU";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_PARTIALV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_CROSSUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_UV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_LOOKUP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_LOOKUPPRESAMPLED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclType2String(SVGA3dDeclType type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_D3DCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UBYTE4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UBYTE4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT2N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_USHORT2N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_USHORT4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UDEC3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_DEC3N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT16_2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT16_4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaSurfaceType2String(SVGA3dSurfaceFormat format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R5G6B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A4R4G4B4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D32";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24S8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D15S1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24X8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_DF16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_DF24";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24S8_INT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE4_ALPHA4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE8_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPU8V8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPL6V5U5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPX8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPL8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Q8W8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_CxV8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A2W10V10U10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ARGB_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ARGB_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A2R10G10B10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RG_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RG_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUFFER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_V16U16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A16B16G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_UYVY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_YUY2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_NV12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_AYUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BC4_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BC5_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dPrimitiveType2String(SVGA3dPrimitiveType PrimitiveType)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLELIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_POINTLIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_LINELIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_LINESTRIP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLESTRIP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLEFAN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif /* LOG_ENABLED */