summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl
AgeCommit message (Collapse)Author
2009-12-02wgl: Call st_swapbuffers instead of st_notify_swapbuffers.José Fonseca
This will get single buffer, double buffer, and joint single/double buffer (typical in CAD applications) done right, at least as far as the frambuffer is concerned. There are still problems with multiple contexts using the same framebuffer because st_framebuffer_* calls assume the framebuffer is bound to a single context.
2009-11-27wgl: Fix copy'n'paste typo in comment.José Fonseca
2009-11-24wgl: Fix copy'n'paste typo in comment.José Fonseca
2009-09-24wgl: DWM integration.José Fonseca
2009-09-23wgl: Eliminate the shared layer; implement WGL API on top of the ICD callbacks.José Fonseca
While the WGL API has been stale for decades now, the ICD interface has been updated with new Windows versions, so it is much easier to define everything in terms of the ICD interfaces, which is pretty much what Microsoft's opengl32.dll does anyway.
2009-09-23wgl: Flatten the source tree.José Fonseca
It is easier to have the WGL API on top of the ICD callbacks as Microsoft's own implementation does, than to have a seperate shared entity. This source reorganization is in antecipation of that.
2009-09-23wgl: Fix debug_printf format specifiers.José Fonseca
2009-07-16wgl: Expose pipe_screen/pipe_context via an extension.José Fonseca
2009-07-06wgl: Make the stw_framebuffer destructions threadsafe.José Fonseca
Ensure no other thread is accessing a framebuffer when it is being destroyed by acquiring both the global and per-framebuffer mutexes. Normal access only needs the global lock to walk the linked list and acquire the per-framebuffer mutex.
2009-07-06wgl: Check for multiple threads before GET_CURRENT_CONTEXT.José Fonseca
Fixes wglthreads -- the 2nd thread MakeCurrent call was trying to flush the first thread context while still in use.
2009-07-06wgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.José Fonseca
According to http://blogs.msdn.com/oldnewthing/archive/2008/01/15/7113860.aspx WM_SIZE is generated from WM_WINDOWPOSCHANGED by DefWindowProc so it can be masked out by the application. Also there were some weird bogus WM_SIZE 0x0 messages when starting sharedtex_mt which we don't get like this.
2009-07-03st/wgl: don't advertise WGL_EXT_swap_interval stringKeith Whitwell
This is a tweak to a previous fix -- it's not necessary to actually advertise this extension to prevent these games from crashing -- they ignore the extension string anyway. It's sufficient to just have GetProcAddress return some dummy function addresses for SwapInterval. Given we don't really implement this funcitonality, this is a better fix.
2009-07-03wgl: Lookup framebuffers by HWND whenever possible.José Fonseca
Some applications create several HDCs for the same window, so spite the WGL API is geared towards HDCs it is not reliable searching by HDC.
2009-07-01st/wgl: dummy implementation of wgl swapinterval extensionKeith Whitwell
Required as some applications retrieve and call these functions regardless of the fact that we don't advertise the extension and further more the results of wglGetProcAddress are NULL.
2009-07-01wgl: Optimize wglGetProcAddress.José Fonseca
Do linear search only if prefix matches.
2009-06-24wgl: Handle flush after a window is destroyed.José Fonseca
Fixes assertion failure with conform.
2009-06-18wgl: Fix window resizing in multithread applications.José Fonseca
In multithreading stw_call_window_proc can be called by a thread other than the thread where the context is bound.
2009-06-18wgl: Move all thread related code together.José Fonseca
Not only for cosmetic reasons, but also because we need to set the SetWindowsHookEx hook for threads created before the DllMain is called (threads for each we don't get the DLL_THREAD_ATTACH notification).
2009-06-17wgl: Factor out some repetitive code into inline functions.José Fonseca
2009-06-11wgl: Fix prototype.José Fonseca
2009-06-09stw: ignore swapbuffer requests on singlebufferKeith Whitwell
Return TRUE in this case. Returning FALSE seems to result in mis-rendering -- possibly opengl32.dll is trying to compensate by doing a software blit??
2009-06-08stw: If stfb not set don't call into mesaJakob Bornecrantz
2009-06-01wgl: Destroy the framebuffer when the window is destroyed.José Fonseca
2009-05-31wgl: Cleanup framebuffer destruction logic.José Fonseca
2009-05-31wgl: Ensure we only create framebuffers for HDC associated with a window.José Fonseca
2009-05-30wgl: Use the right pixel format.José Fonseca
There is no current pixel format. Each HDC has its pixelformat which is kept by gdi and set/get via the SetPixelFormat/GetPixelFormat functions. Now the HDC's pixelformat is kept in the stw_framebuffer, which is created during the SetPixelFormat.
2009-05-30wgl: Fix debugging output.José Fonseca
2009-05-30wgl: Rename function.José Fonseca
2009-05-30wgl: Remove unused field.José Fonseca
2009-05-08wgl: Grow the maximum number of pixel formats to cope with the new accum ↵José Fonseca
pixel formats. Fix a segfault when using softpipe.
2009-05-08wgl: Export pixelformats with accumulation bits.José Fonseca
2009-05-08stw: fix potential uninitialized use of curctxKeith Whitwell
2009-05-08wgl: Enforce a minimum 1x1 framebuffer size.José Fonseca
2009-05-08wgl: Add assertion for missing function.José Fonseca
2009-05-08wgl: Remove unused variable.José Fonseca
2009-05-08wgl: Implement ShareLists.José Fonseca
2009-05-08wgl: Implemente SwapLayerBuffers.José Fonseca
2009-05-08wgl: Include alpha bits in pixel format's cColorBits field.José Fonseca
2009-05-08wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.José Fonseca
2009-04-28wgl: Store current HDC/HGLRC in stw_context.José Fonseca
Less TLS lookups.
2009-04-27wgl: Cope with pre-existing threads.José Fonseca
DllMain is called with DLL_THREAD_ATTACH only by threads created after the DLL is loaded by the process.
2009-04-27wgl: Implement WGL_EXT_extensions_string extension.José Fonseca
2009-04-27stw: Use a statically initiallized gl proc table.José Fonseca
It doesn't change anyway.
2009-04-20wgl: Don't implement broken gl_dispatch_stub_xxx.José Fonseca
These don't respect the stdcall, so they crash upon return.
2009-04-17wgl: Put commas in the right places.José Fonseca
2009-04-17wgl: Flip the pixel format order.José Fonseca
List 32bit pixel formats first, as nobody is interested in 16bit pixel formats nowadays.
2009-04-10wgl: Protect the framebuffer with a lock.José Fonseca
Unfortunately this doesn't catch all the cases, as the mesa state tracker can still use the framebuffer without giving the wgl state tracker the chance to lock it.
2009-04-10wgl: Note down the gallium pixel formats, instead of re-guessing them.José Fonseca
2009-04-10wgl: Query the screen for supported formats.José Fonseca
2009-04-10wgl: Walk through the pixel formats combinations.José Fonseca