summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
AgeCommit message (Collapse)Author
2010-01-20st/egl_g3d: Add support for driver probe.Chia-I Wu
Hook the drv->Probe callback to allow the drivers to probe displays. The loading of state trackers is delayed to avoid unnecessary loading.
2010-01-20st/egl_g3d: Add support for probe to native displays.Chia-I Wu
The functions can be used to check if a display is supported without creating a struct native_display. It uses a probe object that can be shared across drivers.
2010-01-20st/egl_g3d: Do not reuse the pipe transfer in ximage.Chia-I Wu
A pipe transfer is supposed to be temporary. It should be created before X*PutImage and destroyed afterwards.
2010-01-20Merge remote branch 'origin/opengl-es-v2'Chia-I Wu
2010-01-18st/egl_g3d: Clean up for x11_drawable_get_depth.Chia-I Wu
Fix a wrong comment and remove an unnecessary #include.
2010-01-18dri: Add an MSAA-enabled factor to DRI configs.Corbin Simpson
4 samples should be enough for GLUT to be satisfied, and I think most of the HW that does any MSAA, can do it. Note that any pipe that doesn't multisample can just ignore the corresponding flag in pipe_rasterizer_state.
2010-01-18dri: Properly calculate number of modes for MSAA.Corbin Simpson
Split from the next patch for bisection purposes only.
2010-01-18st/egl_g3d: Add support for eglCopyBuffers.Chia-I Wu
It uses a slow path to copy the render buffer of the surface to the target pixmap. We might be able to create a pipe context for EGLDisplay's use and use a blitter context for the purpose. It is left for a future consideration.
2010-01-18st/egl_g3d: Add is_pixmap_supported to native display interface.Chia-I Wu
The function may be used to support, for example, EGL_MATCH_NATIVE_PIXMAP and EGL_KHR_image_pixmap.
2010-01-18st/egl_g3d: Update validate to use an attachment mask.Chia-I Wu
A validate call asks for the buffers of a native surface. Using a mask to represent the interested buffers is more intuitive. It also rules out corner cases such as a single attachment being listed multiple times.
2010-01-18st/vega: Fix window resizing with egl_g3d.Chia-I Wu
egl_g3d calls st_set_framebuffer_surface on window resize. It updates the renderbuffer's geometry and makes st_resize_framebuffer a no-op. This commit improves the no-op check a little bit. It can do better after gallium-fb-dimensions is merged.
2010-01-18st/vega: Call screen->update_buffer instead of winsys->update_buffer.Chia-I Wu
This removes the last reference to winsys and is per mesa/st.
2010-01-17softpipe: Move st/python's malloc winsys to softpipeJakob Bornecrantz
Users of softpipe can still specify thier own winsys but now there is a default one also that uses malloc. This allows the malloc winsys to be shared with other users of softpipe.
2010-01-17st/xlib: Make glXGetProcAddressARB visibleJakob Bornecrantz
2010-01-16gallium: Fix uninitialized instance divisor and index.Chia-I Wu
2010-01-15regress: Add .gitgnore for *.png files.Michal Krol
2010-01-15Merge branch 'gallium-noconstbuf'Roland Scheidegger
Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c src/mesa/state_tracker/st_draw_feedback.c
2010-01-15st/egl_g3d: Avoid validation upon buffer swap or flush frontbuffer.Chia-I Wu
With screen->update_buffer being hooked, leave the job to the state trackers.
2010-01-15st/egl_g3d: Hook to update_buffer of the pipe screen.Chia-I Wu
It is a notification from the client APIs that the surface size might have changed.
2010-01-15st/egl_g3d: Always override flush_frontbuffer.Chia-I Wu
Instead of letting the native displays install their own version of flush_frontbuffer, always override the callback with a version that calls the flush_frontbuffer of the native surface.
2010-01-14Merge branch 'mesa_7_7_branch'Jakob Bornecrantz
Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/util/Makefile src/gallium/drivers/r300/r300_state_derived.c
2010-01-14egl_g3d: Check if the creation of pipe or st context fails.Chia-I Wu
It should not return an incomplete EGLContext to the users.
2010-01-14st/egl_g3d: Use a sequence number to decide if validation is required.Chia-I Wu
It is not safe to assume that the native surface has not changed since the last validation by checking the geometry alone. Add a sequence number to "validate" callback for that purpose. This is inspired by Luca Barbieri's work.
2010-01-13st/dri: Make sure we always request a fake front.Thomas Hellstrom
This should be the correct, but sub-optimal way to handle things on pre-1.7 servers. For servers that automatically adds a fake front we should never request the fake front and handle the reply differently. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-01-12st/egl_g3d: Get the stapi from the driver.Chia-I Wu
egl_g3d_get_st was called because the driver argument was not given before. It can be fixed now.
2010-01-12egl: Add _EGLDriver as the first argument to GetProcAddress.Chia-I Wu
The rest of the driver API has it as the first argument. It should be there so that a driver has access to itself.
2010-01-12st/egl_g3d: Improve comments to the native display interface.Chia-I Wu
Document the future of __GLcontextModes. Improve the description of surface validation and native_flush_frontbuffer.
2010-01-12st/es: Clean up install target.Chia-I Wu
Use DESTDIR and MINSTALL. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/es: Fix build issue after merge.Chia-I Wu
In c847a13d38d4e8c5f4c386d060dcc8ec09e491a3, auxiliaries becomes a single library; In e388d62b4712bcd75cecad53f5ca20a2bb6f89b1, the default build is changed to have -fvisibility=hidden. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12Merge branch 'master' into opengl-es-v2Chia-I Wu
Conflicts: src/mesa/main/dd.h
2010-01-12st/egl_g3d: Add support for KMS native display.Chia-I Wu
The KMS native display implements the modeset interface using DRM modesetting. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/egl_g3d: Add support for EGL_MESA_screen_surface.Chia-I Wu
This is implemented through the modeset interface. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/egl_g3d: Update the native display interface for modesetting.Chia-I Wu
The new interface can be used to implement EGL_MESA_screen_surface. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/egl_g3d: New EGL state tracker that uses Gallium.Chia-I Wu
This new (intermediate) EGL state tracker is the base work for EGL drivers that uses Gallium. It makes it easier to support new window systems. Currently, there is support only for X11. This driver supports multiple APIs (OpenVG, OpenGL, ...) and supports hardware acceleration through winsys/drm. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/vega: Make it compatible with st_public.h.Chia-I Wu
It missed a stub for st_get_proc_address, and st_make_current should return a boolean. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12st/vega: Advertise OpenVG support.Chia-I Wu
Define st_api_OpenVG to advertise OpenVG support. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-11st/xorg: move exaMoveInPixmap before trying to fetch itZack Rusin
as Michel suggested, this is a cleaner way of fixing crashes caused by exaGetPixmapDriverPrivate returning null since the data hasn't been moved yet.
2010-01-11st/xorg: fix a rare video crashZack Rusin
sometimes dst isn't present if a window is in a middle of a resize, stop crashing in those cases and just ignore a frame.
2010-01-11st/xlib: Mark GLX functions as public.Chia-I Wu
Mark all functions start with glX as public. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-11st: Mark functions in st_public.h and vg_tracker.h as public.Chia-I Wu
These functions are the API of Gallium state tracker, and are used by EGL. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-11python: Integrate with llvmpipe if possible.José Fonseca
Temporary. We should soon have the ability to integrate with any driver via glx extensions.
2010-01-11python: Mask out PIPE_TEXTURE_USAGE_DISPLAY_TARGET usage.José Fonseca
As displaying surfaces directly isn't supported by the python state tracker.
2010-01-11python: Prefer PIPE_FORMAT_Z32_UNORM.José Fonseca
2010-01-11python: Set PIPE_TEXTURE_USAGE_RENDER_TARGET instead of DISPLAY_TARGET.José Fonseca
As the python state tracker is not integrated with window system an cannot present surfaces directly.
2010-01-11st/dri: update dri2 drawables when viewport is changedBen Skeggs
Fixes gnome-shell on nouveau, as well as window resize with various other applications. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-01-07st/xorg: remove unused xorg_exa_get_pixmap_handle functionKeith Whitwell
2010-01-11Revert "st/dri: no need to request fake front buffer, only handle it being ↵Thomas Hellstrom
returned" This reverts commit 1336989ec60fff7bd590fefd28945a0e5dc536e3. The commit breaks frontbuffer rendering and the possibility to do on-demand frontbuffer requests on all Xservers prior to 1.7. The commit should be conditioned on a dri2 version check. I've submitted a patch to Xserver to bump dri2 minor, and it's acked by Ian. To be able to check the version from within the state tracker, we will probably need another dri2 extension function that returns the server version. The protocol has support for it. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-01-06gallium: remove PIPE_TEX_FILTER_ANISOLuca Barbieri
This patch removes PIPE_TEX_FILTER_ANISO. Anisotropic filtering is enabled if and only if max_anisotropy > 1.0. Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be considered equivalent, and meaning to turn off anisotropic filtering. This approach has the small drawback of eliminating the possibility of enabling anisotropic filter on either minification or magnification separately, which Radeon hardware seems to support, is currently support by Gallium but not exposed to OpenGL. If this is actually useful it could be handled by splitting max_anisotropy in two values and adding an appropriate OpenGL extension. NOTE: some fiddling & reformatting by keithw to get this patch to apply. Hopefully nothing broken in the process.
2010-01-05Merge branch 'remove-intel-dri1'Kristian Høgsberg
* remove-intel-dri1: intel: intelScreenContext() is no longer used intel: Remove remaining dri2.enabled tests intel: Drop more cliprect bookkeeping intel: Remove struct intel_framebuffer intel: Remove client-side vblank code intel: Drop intelWindowMoved() intel: Drop batchbuffer cliprect_mode tracking intel: Drop DRI1 static regions intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region() intel: Drop LOCK/UNLOCK_HARDWARE() intel: Drop DRI1 SwapBuffer implementation intel: Drop DRI1 CopySubBuffer implementation intel: Drop DRI1 support Push __driDriverExtensions out of dri_util.c and into the drivers Remove leftover __DRI{screen,drawable,context}Private references Check for libdrm_$chipset.pc when needed
2010-01-04Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: docs/relnotes.html src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/r300/r300_cs.h src/mesa/drivers/dri/i965/brw_wm_surface_state.c src/mesa/main/enums.c