summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl
AgeCommit message (Collapse)Author
2010-01-22Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c
2010-01-19wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color ↵José Fonseca
pixel formats. Since all formats we export have PFD_DRAW_TO_WINDOW flag.
2010-01-19wgl: Don't export pure-stencil pixel formats.José Fonseca
They cause DCT's conform to always fail.
2010-01-01scons: Don't globally define WIN32_LEAN_AND_MEAN.José Fonseca
Some of the demo progams legitimately need the functionality that's disabled by WIN32_LEAN_AND_MEAN. Instead the solution should be to define WIN32_LEAN_AND_MEAN just before including windows.h on a case by case basis.
2009-12-17Merge branch 'master' into pipe-format-simplifyMichal Krol
Conflicts: src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/auxiliary/draw/draw_pipe_pstipple.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/auxiliary/util/u_surface.c src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/cell/ppu/cell_texture.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_texture.c src/gallium/drivers/softpipe/sp_texture.c src/gallium/drivers/softpipe/sp_tile_cache.c src/gallium/drivers/svga/svga_state_vs.c src/gallium/include/pipe/p_format.h src/gallium/state_trackers/dri/dri_drawable.c src/gallium/state_trackers/egl/egl_surface.c src/gallium/state_trackers/python/p_device.i src/gallium/state_trackers/python/st_softpipe_winsys.c src/gallium/state_trackers/vega/api_filters.c src/gallium/state_trackers/vega/image.c src/gallium/state_trackers/vega/mask.c src/gallium/state_trackers/vega/paint.c src/gallium/state_trackers/vega/renderer.c src/gallium/state_trackers/vega/vg_tracker.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/gallium/state_trackers/xorg/xvmc/surface.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_buffer.c src/gallium/winsys/egl_xlib/sw_winsys.c src/gallium/winsys/g3dvl/xlib/xsp_winsys.c src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c src/gallium/winsys/gdi/gdi_softpipe_winsys.c src/gallium/winsys/xlib/xlib_cell.c src/gallium/winsys/xlib/xlib_llvmpipe.c src/gallium/winsys/xlib/xlib_softpipe.c src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_cb_texture.c src/mesa/state_tracker/st_texture.c
2009-12-08Remove remaining pipe format utility functions.Michal Krol
Depricate pf_type(), pf_size_*(), pf_layout() and pf_exp2(). Map depricated PIPE_FORMAT_TYPE to new UTIL_FORMAT_ values: UNKNOWN = TYPE_VOID UNORM = TYPE_UNSIGNED + LAYOUT_ARITH SNORM = TYPE_SIGNED + LAYOUT_ARITH FIXED = TYPE_FIXED FLOAT = TYPE_FLOAT USCALED = TYPE_UNSIGNED + LAYOUT_ARRAY SSCALED = TYPE_SIGNED + LAYOUT_ARRAY SRGB = TYPE_COLORSPACE_SRGB
2009-12-03Move pf_get_component_bits() to u_format auxiliary module.Michal Krol
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.