summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-2212-38/+98
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * st/xorg: Remove unnecessary headers.Vinson Lee2010-01-217-11/+0
| |
| * st/xorg: Fic bug and close drm_api at proper placeJakob Bornecrantz2010-01-201-7/+17
| |
| * st/xorg: Don't leak BusID bufferJakob Bornecrantz2010-01-191-0/+1
| |
| * st/xorg: Pass kernel driver name to drmOpenJakob Bornecrantz2010-01-191-4/+12
| |
| * st/dri: update dri2 drawables when viewport is changedBen Skeggs2010-01-193-0/+12
| | | | | | | | | | | | | | Fixes gnome-shell on nouveau, as well as window resize with various other applications. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| * wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color ↵José Fonseca2010-01-191-1/+2
| | | | | | | | | | | | pixel formats. Since all formats we export have PFD_DRAW_TO_WINDOW flag.
| * wgl: Don't export pure-stencil pixel formats.José Fonseca2010-01-191-2/+0
| | | | | | | | They cause DCT's conform to always fail.
| * st/dri: Add comment for intentional fallthrough in case statement.Vinson Lee2010-01-181-0/+1
| |
| * st/dri: fix optionCache memory leaksMarcin Slusarz2010-01-182-0/+16
| | | | | | | | Signed-off-by: Brian Paul <brianp@vmware.com>
| * st/xorg: If dri2 version is 2 support version 1 as wellJakob Bornecrantz2010-01-151-4/+36
| | | | | | | | | | | | Thanks to X server commit 2e2c5b216cc1c7a9bc26bd2c68226aaed5fc52ca it is possible to be ABI compatible in version 2 with version 1 of the DRI2 interface.
| * st/xorg: Set enforce version to 1 if not definedJakob Bornecrantz2010-01-151-6/+1
| |
| * st/dri: Don't request a fake front if the server adds one automatically.Thomas Hellstrom2010-01-183-5/+13
| | | | | | | | | | | | | | We use the presence of the getBuffersWithFormat extension function to detect whether the server automatically adds a front. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
* | st/egl_g3d: Rename to st/egl.Chia-I Wu2010-01-2217-0/+0
| | | | | | | | Simply the name to egl.
* | st/egl: Remove the egl state tracker.Chia-I Wu2010-01-226-1119/+0
| | | | | | | | | | | | The egl_g3d state tracker has support for KMS, and the support is based on the egl state tracker. As egl_g3d provides more features, it should be better to keep only egl_g3d to unify the efforts.
* | st/egl_g3d: Use glxinit.c from egl_xdri.Chia-I Wu2010-01-224-590/+10
| | | | | | | | | | It is used to fetch the GLX visuals/fbconfigs. Use egl_xdri's version to avoid duplication. It might be better to rewrite that part though.
* | st/egl_g3d: Add support for driver probe.Chia-I Wu2010-01-202-11/+108
| | | | | | | | | | Hook the drv->Probe callback to allow the drivers to probe displays. The loading of state trackers is delayed to avoid unnecessary loading.
* | st/egl_g3d: Add support for probe to native displays.Chia-I Wu2010-01-205-7/+146
| | | | | | | | | | | | 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.
* | st/egl_g3d: Do not reuse the pipe transfer in ximage.Chia-I Wu2010-01-201-18/+22
| | | | | | | | | | A pipe transfer is supposed to be temporary. It should be created before X*PutImage and destroyed afterwards.
* | Merge remote branch 'origin/opengl-es-v2'Chia-I Wu2010-01-205-3/+95
|\ \
| * | st/es: Clean up install target.Chia-I Wu2010-01-121-7/+7
| | | | | | | | | | | | | | | | | | Use DESTDIR and MINSTALL. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
| * | st/es: Fix build issue after merge.Chia-I Wu2010-01-123-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Merge branch 'master' into opengl-es-v2Chia-I Wu2010-01-12147-1749/+8612
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/dd.h
| * | | st/egl: Allow APIs other than OpenGL.Chia-I Wu2009-11-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done by stopping linking to libmesagallium.a and removing DRI related stuff. The state tracker an application links to decides the API supported. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
| * | | gallium: Allow state trackers to install files.Chia-I Wu2009-11-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | State trackers like es or vega need to install their libraries. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
| * | | st/es: Add OpenGL ES state trackers.Chia-I Wu2009-11-053-0/+90
| | | | | | | | | | | | | | | | Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
* | | | st/egl_g3d: Clean up for x11_drawable_get_depth.Chia-I Wu2010-01-182-2/+1
| | | | | | | | | | | | | | | | Fix a wrong comment and remove an unnecessary #include.
* | | | dri: Add an MSAA-enabled factor to DRI configs.Corbin Simpson2010-01-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | dri: Properly calculate number of modes for MSAA.Corbin Simpson2010-01-181-3/+5
| | | | | | | | | | | | | | | | Split from the next patch for bisection purposes only.
* | | | st/egl_g3d: Add support for eglCopyBuffers.Chia-I Wu2010-01-181-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | st/egl_g3d: Add is_pixmap_supported to native display interface.Chia-I Wu2010-01-185-0/+96
| | | | | | | | | | | | | | | | | | | | The function may be used to support, for example, EGL_MATCH_NATIVE_PIXMAP and EGL_KHR_image_pixmap.
* | | | st/egl_g3d: Update validate to use an attachment mask.Chia-I Wu2010-01-186-129/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | st/vega: Fix window resizing with egl_g3d.Chia-I Wu2010-01-182-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | st/vega: Call screen->update_buffer instead of winsys->update_buffer.Chia-I Wu2010-01-181-3/+2
| | | | | | | | | | | | | | | | This removes the last reference to winsys and is per mesa/st.
* | | | softpipe: Move st/python's malloc winsys to softpipeJakob Bornecrantz2010-01-171-217/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | st/xlib: Make glXGetProcAddressARB visibleJakob Bornecrantz2010-01-171-1/+1
| | | |
* | | | gallium: Fix uninitialized instance divisor and index.Chia-I Wu2010-01-161-0/+1
| | | |
* | | | regress: Add .gitgnore for *.png files.Michal Krol2010-01-152-0/+2
| | | |
* | | | Merge branch 'gallium-noconstbuf'Roland Scheidegger2010-01-1511-73/+70
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c src/mesa/state_tracker/st_draw_feedback.c
| * | | | gallium: adapt state trackers etc. to pipe_constant_buffer removalRoland Scheidegger2009-12-2311-73/+70
| | | | |
* | | | | st/egl_g3d: Avoid validation upon buffer swap or flush frontbuffer.Chia-I Wu2010-01-151-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | With screen->update_buffer being hooked, leave the job to the state trackers.
* | | | | st/egl_g3d: Hook to update_buffer of the pipe screen.Chia-I Wu2010-01-152-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | It is a notification from the client APIs that the surface size might have changed.
* | | | | st/egl_g3d: Always override flush_frontbuffer.Chia-I Wu2010-01-157-78/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2010-01-142-3/+8
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/util/Makefile src/gallium/drivers/r300/r300_state_derived.c
| * | | | st/dri: Make sure we always request a fake front.Thomas Hellstrom2010-01-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | st/xorg: move exaMoveInPixmap before trying to fetch itZack Rusin2010-01-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as Michel suggested, this is a cleaner way of fixing crashes caused by exaGetPixmapDriverPrivate returning null since the data hasn't been moved yet.
| * | | | st/xorg: fix a rare video crashZack Rusin2010-01-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Revert "st/dri: no need to request fake front buffer, only handle it being ↵Thomas Hellstrom2010-01-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | egl_g3d: Check if the creation of pipe or st context fails.Chia-I Wu2010-01-141-2/+12
| | | | | | | | | | | | | | | | | | | | It should not return an incomplete EGLContext to the users.
* | | | | st/egl_g3d: Use a sequence number to decide if validation is required.Chia-I Wu2010-01-147-21/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.