DevVGA-SVGA3d-shared.cpp revision b2f884b6a137aa7f67cfeea03f4e9bc6f1e7d912
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/** @file
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * DevVMWare - VMWare SVGA device
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Copyright (C) 2013 Oracle Corporation
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync *
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
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Header Files *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#define LOG_GROUP LOG_GROUP_DEV_VMSVGA
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/vmm/pdmdev.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/version.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/err.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/log.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/vmm/pgm.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <iprt/assert.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <iprt/semaphore.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <iprt/uuid.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <iprt/mem.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <iprt/avl.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/VMMDev.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/VBoxVideo.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include <VBox/bioslogo.h>
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/* should go BEFORE any other DevVGA include to make all DevVGA.h config defines be visible */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "DevVGA.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "DevVGA-SVGA.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "DevVGA-SVGA3d.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "vmsvga/svga_reg.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "vmsvga/svga3d_reg.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#include "vmsvga/svga3d_shaderdefs.h"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef RT_OS_WINDOWS
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Structures and Typedefs *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#define VMSVGA3D_WNDCLASSNAME "VMSVGA3DWNDCLS"
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncstatic LONG WINAPI vmsvga3dWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef RT_OS_WINDOWS
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/**
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Send a message to the async window thread and wait for a reply
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync *
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
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncint vmsvga3dSendThreadMessage(RTTHREAD pWindowThread, RTSEMEVENT WndRequestSem, UINT msg, WPARAM wParam, LPARAM lParam)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync int rc;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync BOOL ret;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ret = PostThreadMessage(RTThreadGetNative(pWindowThread), msg, wParam, lParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AssertMsgReturn(ret, ("PostThreadMessage %x failed with %d\n", RTThreadGetNative(pWindowThread), GetLastError()), VERR_INTERNAL_ERROR);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rc = RTSemEventWait(WndRequestSem, RT_INDEFINITE_WAIT);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Assert(RT_SUCCESS(rc));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return rc;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/**
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * The async window handling thread
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @returns VBox status code.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param pDevIns The VGA device instance.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * @param pThread The send thread.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncDECLCALLBACK(int) vmsvga3dWindowThread(RTTHREAD ThreadSelf, void *pvUser)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RTSEMEVENT WndRequestSem = (RTSEMEVENT)pvUser;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync WNDCLASSEX wc;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Register our own window class. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.cbSize = sizeof(wc);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.style = CS_OWNDC;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.lpfnWndProc = (WNDPROC) vmsvga3dWndProc;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.cbClsExtra = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.cbWndExtra = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hInstance = GetModuleHandle("VBoxDD.dll"); /* @todo hardcoded name.. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hCursor = LoadCursor(NULL, IDC_ARROW);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hbrBackground = NULL;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.lpszMenuName = NULL;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.lpszClassName = VMSVGA3D_WNDCLASSNAME;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync wc.hIconSm = NULL;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (!RegisterClassEx(&wc))
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Log(("RegisterClass failed with %x\n", GetLastError()));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return VERR_INTERNAL_ERROR;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync LogFlow(("vmsvga3dWindowThread: started loop\n"));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync while (true)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync MSG msg;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (GetMessage(&msg, 0, 0, 0))
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (msg.message == WM_VMSVGA3D_EXIT)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RTSemEventSignal(WndRequestSem);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync break;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (msg.message == WM_VMSVGA3D_WAKEUP)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync continue;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (msg.message == WM_VMSVGA3D_CREATEWINDOW)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync HWND *pHwnd = (HWND *)msg.wParam;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync LPCREATESTRUCT pCS = (LPCREATESTRUCT) msg.lParam;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef DEBUG_GFX_WINDOW
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RECT rectClient;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.left = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.top = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.right = pCS->cx;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.bottom = pCS->cy;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AdjustWindowRectEx(&rectClient, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE | WS_CAPTION, FALSE, WS_EX_NOACTIVATE | WS_EX_NOPARENTNOTIFY | WS_EX_TRANSPARENT);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->cx = rectClient.right - rectClient.left;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->cy = rectClient.bottom - rectClient.top;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync *pHwnd = CreateWindowEx(pCS->dwExStyle,
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync VMSVGA3D_WNDCLASSNAME,
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->lpszName,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->style,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef DEBUG_GFX_WINDOW
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync 0,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync 0,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#else
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->x,
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->y,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->cx,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->cy,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef DEBUG_GFX_WINDOW
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync 0,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#else
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->hwndParent,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->hMenu,
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync pCS->hInstance,
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync NULL);
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
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RTSemEventSignal(WndRequestSem);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync continue;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync else
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (msg.message == WM_VMSVGA3D_DESTROYWINDOW)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync BOOL ret = DestroyWindow((HWND)msg.wParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Assert(ret);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RTSemEventSignal(WndRequestSem);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync continue;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync else
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (msg.message == WM_VMSVGA3D_RESIZEWINDOW)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync HWND hwnd = (HWND)msg.wParam;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync LPCREATESTRUCT pCS = (LPCREATESTRUCT) msg.lParam;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef DEBUG_GFX_WINDOW
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RECT rectClient;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.left = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.top = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.right = pCS->cx;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync rectClient.bottom = pCS->cy;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync AdjustWindowRectEx(&rectClient, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE | WS_CAPTION, FALSE, WS_EX_NOACTIVATE | WS_EX_NOPARENTNOTIFY | WS_EX_TRANSPARENT);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->cx = rectClient.right - rectClient.left;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync pCS->cy = rectClient.bottom - rectClient.top;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync BOOL ret = SetWindowPos(hwnd, 0, pCS->x, pCS->y, pCS->cx, pCS->cy, SWP_NOZORDER | SWP_NOMOVE);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Assert(ret);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /* Signal to the caller that we're done. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync RTSemEventSignal(WndRequestSem);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync continue;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync TranslateMessage(&msg);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync DispatchMessage(&msg);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync else
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Log(("GetMessage failed with %x\n", GetLastError()));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync break;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync Log(("vmsvga3dWindowThread: end loop\n"));
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return VINF_SUCCESS;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/* Window procedure for our top level window overlays. */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncstatic LONG WINAPI vmsvga3dWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (uMsg)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case WM_CLOSE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync break;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case WM_DESTROY:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync break;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case WM_NCHITTEST:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return HTNOWHERE;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return DefWindowProc(hwnd, uMsg, wParam, lParam);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif /* RT_OS_WINDOWS */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/**
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Calculate the size of one pixel
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncuint32_t vmsvga3dSurfaceFormatSize(SVGA3dSurfaceFormat format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R5G6B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A4R4G4B4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D32:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24S8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24X8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_DF24:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24S8_INT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_DF16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D15S1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE4_ALPHA4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 1;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE8_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 8;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 16;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPU8V8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPL6V5U5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPX8L8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Q8W8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_CxV8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X8L8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A2W10V10U10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S10E5: /* 16-bit floating-point ARGB */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S23E8: /* 32-bit floating-point ARGB */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A2R10G10B10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 1;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 2;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RG_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RG_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 8;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync /*
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 */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUFFER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 1;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
d200be7337d4aad2bec2961a885e856f7866d4f6vboxsync case SVGA3D_NV12:
d200be7337d4aad2bec2961a885e856f7866d4f6vboxsync return 1;
d200be7337d4aad2bec2961a885e856f7866d4f6vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_V16U16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 4;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 32;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A16B16G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return 8;
b2f884b6a137aa7f67cfeea03f4e9bc6f1e7d912vboxsync
b2f884b6a137aa7f67cfeea03f4e9bc6f1e7d912vboxsync default:
b2f884b6a137aa7f67cfeea03f4e9bc6f1e7d912vboxsync AssertFailedReturn(4);
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#ifdef LOG_ENABLED
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dGetCapString(uint32_t idxCap)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (idxCap)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_3D:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_3D";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_LIGHTS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_LIGHTS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_CLIP_PLANES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_CLIP_PLANES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_VERTEX_SHADER_VERSION:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_VERTEX_SHADER_VERSION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_VERTEX_SHADER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_VERTEX_SHADER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_FRAGMENT_SHADER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_FRAGMENT_SHADER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_RENDER_TARGETS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_RENDER_TARGETS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_S23E8_TEXTURES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_S23E8_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_S10E5_TEXTURES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_S10E5_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_FIXED_VERTEXBLEND:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_FIXED_VERTEXBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_D16_BUFFER_FORMAT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D16_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_D24S8_BUFFER_FORMAT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D24S8_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_D24X8_BUFFER_FORMAT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_D24X8_BUFFER_FORMAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_QUERY_TYPES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_QUERY_TYPES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_TEXTURE_GRADIENT_SAMPLING:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_TEXTURE_GRADIENT_SAMPLING";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_POINT_SIZE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_POINT_SIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_SHADER_TEXTURES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_SHADER_TEXTURES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURE_WIDTH:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_WIDTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_VOLUME_EXTENT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VOLUME_EXTENT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURE_REPEAT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_REPEAT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURE_ASPECT_RATIO:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_ASPECT_RATIO";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_PRIMITIVE_COUNT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_PRIMITIVE_COUNT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_VERTEX_INDEX:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_INDEX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_VERTEX_SHADER_INSTRUCTIONS:
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 case SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEMPS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEMPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_TEXTURE_OPS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_TEXTURE_OPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MULTISAMPLE_NONMASKABLESAMPLES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MULTISAMPLE_NONMASKABLESAMPLES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_ALPHATOCOVERAGE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_ALPHATOCOVERAGE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SUPERSAMPLE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SUPERSAMPLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_AUTOGENMIPMAPS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_AUTOGENMIPMAPS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEXTURES:
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 case SVGA3D_DEVCAP_MAX_CONTEXT_IDS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_CONTEXT_IDS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_MAX_SURFACE_IDS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_MAX_SURFACE_IDS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_X8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_X8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A2R10G10B10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A2R10G10B10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_X1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_X1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A4R4G4B4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A4R4G4B4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_R5G6B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R5G6B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_D16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_D24X8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24X8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_DF16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_DF16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_DF24:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_DF24";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8_INT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8_INT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_DXT1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_DXT2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_DXT3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_DXT4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_DXT5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_DXT5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_BUMPX8L8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BUMPX8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A2W10V10U10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A2W10V10U10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_BUMPU8V8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BUMPU8V8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_Q8W8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_Q8W8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_CxV8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_CxV8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_R_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_R_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_R_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_RG_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_RG_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_RG_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_RG_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_ARGB_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ARGB_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_ARGB_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_ARGB_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_V16U16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_V16U16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_A16B16G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_A16B16G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_UYVY:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_UYVY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_YUY2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_YUY2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_NV12:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_NV12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_AYUV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_AYUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_BC4_UNORM:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BC4_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DEVCAP_SURFACEFMT_BC5_UNORM:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DEVCAP_SURFACEFMT_BC5_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNEXPECTED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dGet3dFormatString(uint32_t format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync static char szFormat[1024];
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync szFormat[0] = 0;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_TEXTURE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_TEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_VOLUMETEXTURE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_VOLUMETEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_CUBETEXTURE)
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)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_ZSTENCIL\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 if (format & SVGA3DFORMAT_OP_DISPLAYMODE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_DISPLAYMODE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_3DACCELERATION)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_3DACCELERATION\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_PIXELSIZE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_PIXELSIZE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_CONVERT_TO_ARGB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_CONVERT_TO_ARGB\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_OFFSCREENPLAIN)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_OFFSCREENPLAIN\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_SRGBREAD)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_SRGBREAD\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_BUMPMAP)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_BUMPMAP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_DMAP)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_DMAP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_NOFILTER)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_NOFILTER\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_MEMBEROFGROUP_ARGB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_MEMBEROFGROUP_ARGB\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_SRGBWRITE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_SRGBWRITE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_NOALPHABLEND)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_NOALPHABLEND\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_AUTOGENMIPMAP)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_AUTOGENMIPMAP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_VERTEXTEXTURE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_VERTEXTEXTURE\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if (format & SVGA3DFORMAT_OP_NOTEXCOORDWRAPNORMIP)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync strcat(szFormat, " - SVGA3DFORMAT_OP_NOTEXCOORDWRAPNORMIP\n");
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return szFormat;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dGetRenderStateName(uint32_t state)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (state)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync case SVGA3D_RS_ZENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ZWRITEENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZWRITEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ALPHATESTENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ALPHATESTENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_DITHERENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DITHERENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_BLENDENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FOGENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SPECULARENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SPECULARENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LIGHTINGENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LIGHTINGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_NORMALIZENORMALS: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_NORMALIZENORMALS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSPRITEENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSPRITEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSCALEENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALEENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILREF: /* uint32_t */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILREF";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILMASK: /* uint32_t */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILWRITEMASK: /* uint32_t */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILWRITEMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSIZE: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSIZEMIN: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZEMIN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSIZEMAX: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSIZEMAX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSCALE_A: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALE_A";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSCALE_B: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_POINTSCALE_B";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_POINTSCALE_C: /* float */
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 case SVGA3D_RS_FOGSTART: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGSTART";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FOGEND: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FOGDENSITY: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGDENSITY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_RANGEFOGENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_RANGEFOGENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FOGMODE: /* SVGA3dFogMode */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FOGMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_FILLMODE: /* SVGA3dFillMode */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_FILLMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SHADEMODE: /* SVGA3dShadeMode */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SHADEMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LINEPATTERN: /* SVGA3dLinePattern */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEPATTERN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SRCBLEND: /* SVGA3dBlendOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SRCBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_DSTBLEND: /* SVGA3dBlendOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DSTBLEND";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_BLENDEQUATION: /* SVGA3dBlendEquation */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDEQUATION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CULLMODE: /* SVGA3dFace */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CULLMODE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ZFUNC: /* SVGA3dCmpFunc */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ALPHAFUNC: /* SVGA3dCmpFunc */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ALPHAFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILFUNC: /* SVGA3dCmpFunc */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILFUNC";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILFAIL: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILZFAIL: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILZFAIL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILPASS: /* SVGA3dStencilOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILPASS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ALPHAREF: /* float (0.0 .. 1.0) */
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 case SVGA3D_RS_ZBIAS: /* float */
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 case SVGA3D_RS_TEXTUREFACTOR: /* SVGA3dColor */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_TEXTUREFACTOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LOCALVIEWER: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LOCALVIEWER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_SCISSORTESTENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SCISSORTESTENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_BLENDCOLOR: /* SVGA3dColor */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_BLENDCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_STENCILENABLE2SIDED: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_STENCILENABLE2SIDED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CCWSTENCILFUNC: /* SVGA3dCmpFunc */
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 case SVGA3D_RS_SLOPESCALEDEPTHBIAS: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SLOPESCALEDEPTHBIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_DEPTHBIAS: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_DEPTHBIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_OUTPUTGAMMA: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_OUTPUTGAMMA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_ZVISIBLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_ZVISIBLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LASTPIXEL: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LASTPIXEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_CLIPPING: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_CLIPPING";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP0: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP1: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP2: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP3: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP4: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP5: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP6: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP6";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP7: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP7";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP8: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP9: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP9";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP10: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP11: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP11";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP12: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP13: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP13";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP14: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP14";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_WRAP15: /* SVGA3dWrapFlags */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_WRAP15";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_MULTISAMPLEANTIALIAS: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_MULTISAMPLEANTIALIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_MULTISAMPLEMASK: /* uint32_t */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_MULTISAMPLEMASK";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_INDEXEDVERTEXBLENDENABLE: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_INDEXEDVERTEXBLENDENABLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_TWEENFACTOR: /* float */
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 case SVGA3D_RS_SRCBLENDALPHA: /* SVGA3dBlendOp */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_SRCBLENDALPHA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_DSTBLENDALPHA: /* SVGA3dBlendOp */
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 case SVGA3D_RS_LINEAA: /* SVGA3dBool */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEAA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RS_LINEWIDTH: /* float */
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RS_LINEWIDTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dTextureStateToString(SVGA3dTextureStateName textureState)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (textureState)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BIND_TEXTURE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BIND_TEXTURE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_COLOROP:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLOROP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_COLORARG1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_COLORARG2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ALPHAOP:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAOP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ALPHAARG1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ALPHAARG2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ADDRESSU:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSU";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ADDRESSV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_MIPFILTER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MIPFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_MAGFILTER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MAGFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_MINFILTER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_MINFILTER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BORDERCOLOR:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BORDERCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXCOORDINDEX:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXCOORDINDEX";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXTURETRANSFORMFLAGS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURETRANSFORMFLAGS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXCOORDGEN:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXCOORDGEN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVMAT00:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT00";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVMAT01:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT01";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVMAT10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVMAT11:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVMAT11";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXTURE_MIPMAP_LEVEL:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_MIPMAP_LEVEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXTURE_LOD_BIAS:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_LOD_BIAS";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_TEXTURE_ANISOTROPIC_LEVEL:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_TEXTURE_ANISOTROPIC_LEVEL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ADDRESSW:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ADDRESSW";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_GAMMA:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_GAMMA";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVLSCALE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVLSCALE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_BUMPENVLOFFSET:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_BUMPENVLOFFSET";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_COLORARG0:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_COLORARG0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TS_ALPHAARG0:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TS_ALPHAARG0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaTransformToString(SVGA3dTransformType type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_INVALID:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_INVALID";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_WORLD:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_VIEW:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_VIEW";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_PROJECTION:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_PROJECTION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE0:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE0";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE6:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE6";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_TEXTURE7:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_TEXTURE7";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_WORLD1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_WORLD2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_TRANSFORM_WORLD3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_TRANSFORM_WORLD3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclUsage2String(SVGA3dDeclUsage usage)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (usage)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_POSITION:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_POSITION";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_BLENDWEIGHT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BLENDWEIGHT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_BLENDINDICES:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BLENDINDICES";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_NORMAL:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_NORMAL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_PSIZE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_PSIZE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_TEXCOORD:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TEXCOORD";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_TANGENT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TANGENT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_BINORMAL:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_BINORMAL";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_TESSFACTOR:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_TESSFACTOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_POSITIONT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_POSITIONT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_COLOR:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_COLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_FOG:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_FOG";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_DEPTH:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_DEPTH";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLUSAGE_SAMPLE:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLUSAGE_SAMPLE";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclMethod2String(SVGA3dDeclMethod method)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (method)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_DEFAULT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_DEFAULT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_PARTIALU:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_PARTIALU";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_PARTIALV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_PARTIALV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_CROSSUV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_CROSSUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_UV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_UV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_LOOKUP:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_LOOKUP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLMETHOD_LOOKUPPRESAMPLED:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLMETHOD_LOOKUPPRESAMPLED";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaDeclType2String(SVGA3dDeclType type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (type)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_D3DCOLOR:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_D3DCOLOR";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_UBYTE4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UBYTE4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_SHORT2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_SHORT4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_UBYTE4N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UBYTE4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_SHORT2N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT2N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_SHORT4N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_SHORT4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_USHORT2N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_USHORT2N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_USHORT4N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_USHORT4N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_UDEC3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_UDEC3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_DEC3N:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_DEC3N";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT16_2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT16_2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DECLTYPE_FLOAT16_4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DECLTYPE_FLOAT16_4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvgaSurfaceType2String(SVGA3dSurfaceFormat format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (format)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A8R8G8B8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A8R8G8B8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R5G6B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R5G6B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A1R5G5B5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A1R5G5B5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A4R4G4B4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A4R4G4B4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D32:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D32";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24S8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24S8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D15S1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D15S1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24X8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24X8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_DF16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_DF16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_DF24:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_DF24";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Z_D24S8_INT:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Z_D24S8_INT";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE4_ALPHA4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE4_ALPHA4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_LUMINANCE8_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_LUMINANCE8_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT1:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT1";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT3:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT3";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT4:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT4";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_DXT5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_DXT5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPU8V8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPU8V8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPL6V5U5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPL6V5U5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPX8L8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPX8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUMPL8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUMPL8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_Q8W8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_Q8W8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_CxV8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_CxV8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_X8L8V8U8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_X8L8V8U8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A2W10V10U10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A2W10V10U10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ARGB_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ARGB_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ARGB_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A2R10G10B10:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A2R10G10B10";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_ALPHA8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_ALPHA8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_R_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_R_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RG_S10E5:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RG_S10E5";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_RG_S23E8:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_RG_S23E8";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BUFFER:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BUFFER";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_V16U16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_V16U16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_A16B16G16R16:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_A16B16G16R16";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_UYVY:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_UYVY";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_YUY2:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_YUY2";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_NV12:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_NV12";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_AYUV:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_AYUV";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BC4_UNORM:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BC4_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_BC5_UNORM:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_BC5_UNORM";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN!!";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncconst char *vmsvga3dPrimitiveType2String(SVGA3dPrimitiveType PrimitiveType)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync{
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync switch (PrimitiveType)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync {
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_TRIANGLELIST:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLELIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_POINTLIST:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_POINTLIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_LINELIST:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_LINELIST";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_LINESTRIP:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_LINESTRIP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_TRIANGLESTRIP:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLESTRIP";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync case SVGA3D_PRIMITIVE_TRIANGLEFAN:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "SVGA3D_PRIMITIVE_TRIANGLEFAN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync default:
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync return "UNKNOWN";
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync }
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync}
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#endif /* LOG_ENABLED */