utils.c revision 3194da424708abdd288b28d96892b3a5f3f7df0b
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* This small helper function is used to convert a bitmask into the number of masked bits */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync unsigned int count;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync static const UINT l[] =
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync return (i = x >> 16) ? (x = i >> 8) ? l[x] + 24 : l[i] + 16 : (i = x >> 8) ? l[i] + 8 : l[x];
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Set the shader type for this device, depending on the given capabilities
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * and the user preferences in wined3d_settings. */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncvoid select_shader_mode(const struct wined3d_gl_info *gl_info, int *ps_selected, int *vs_selected)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define GLERROR_TO_STR(u) case u: return #u
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync return "unrecognized";
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncvoid dump_color_fixup_desc(struct color_fixup_desc fixup)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncvoid context_release(struct wined3d_context *context)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncvoid (* CDECL wine_tsx11_lock_ptr)(void) = wined3d_do_nothing;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncvoid (* CDECL wine_tsx11_unlock_ptr)(void) = wined3d_do_nothing;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncLPVOID WINAPI VBoxHeapAlloc(HANDLE hHeap, DWORD heaptype,SIZE_T size)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI VBoxHeapFree(HANDLE hHeap, DWORD heaptype,LPVOID ptr)