summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: correct handling of return value from util_vsnprintfKeith Whitwell2009-06-261-5/+13
| | | | | | | We were failing to deal with: - vsnprintf returns negative value on error. - vsnprintf returns the number of chars that *would* have been written on truncation.
* r300-gallium: organize fragment/vertex shadersJoakim Sindholt2009-06-2620-495/+674
| | | | | | | | | | Appart from separating r3xx/r5xx fragment shaders, a more consistent naming scheme has been applied. From now on: r300 = all chips r3xx = R300/R400 only r5xx = R500 only This way r300_fragment_shader is the master struct, and the structs r3xx_fragment_shader and r5xx_fragment_shader inherits it.
* gallium: Add PIPE_OS_APPLE token.Vinson Lee2009-06-251-0/+4
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-06-2424-230/+279
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/i915_tex_layout.c src/mesa/drivers/dri/i965/brw_wm_glsl.c src/mesa/drivers/dri/intel/intel_buffer_objects.c src/mesa/drivers/dri/intel/intel_pixel_bitmap.c src/mesa/drivers/dri/intel/intel_pixel_draw.c src/mesa/main/enums.c src/mesa/main/texstate.c src/mesa/vbo/vbo_exec_array.c
| * wgl: Handle flush after a window is destroyed.José Fonseca2009-06-241-20/+21
| | | | | | | | Fixes assertion failure with conform.
| * softpipe: return alpha=1 in shadow_compare() functionBrian Paul2009-06-191-0/+2
| | | | | | | | | | | | | | The alpha value wasn't set at all before so we got unpredictable results. Note that we don't currently obey GL_DEPTH_TEXTURE_MODE in the state tracker. For now, we return the result in the default mode (r,r,r,1).
| * util: Add cast.José Fonseca2009-06-181-1/+1
| | | | | | | | It is expected to loose precision here.
| * draw: Replace pointer arithmetic with cast.José Fonseca2009-06-181-1/+2
| | | | | | | | | | | | | | Using uintptr_t as intermediate type for pointer -> integer conversions is easier to understand and does not cause any size mismatch warnings. uintptr_t is part of C99, and we already provide a suitable replacement definition for all platforms we care about.
| * trace: Use size_t consistently.José Fonseca2009-06-182-5/+5
| |
| * pipebuffer: Use a type consistently for sizes/offsets.José Fonseca2009-06-1812-84/+90
| | | | | | | | | | | | | | Avoids warnings on 64bit builds. Use regular unsigned since that's what gallium expects, but use a typedef to facilitate possible changes in the future.
| * wgl: Fix window resizing in multithread applications.José Fonseca2009-06-184-47/+112
| | | | | | | | | | In multithreading stw_call_window_proc can be called by a thread other than the thread where the context is bound.
| * wgl: Move all thread related code together.José Fonseca2009-06-185-58/+33
| | | | | | | | | | | | 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).
| * st/glx: added null ptr check in Fake_glXCreatePixmap()Brian Paul2009-06-171-1/+1
| | | | | | | | Fixes segfault in progs/xdemos/glxgears_pixmap.c
| * wgl: Factor out some repetitive code into inline functions.José Fonseca2009-06-171-29/+28
| |
* | identity: Add new identity driverJakob Bornecrantz2009-06-249-0/+1711
| | | | | | | | | | | | | | | | | | | | | | | | This driver does no transformation of the gallium calls going to the real driver, like the identity matrix. It is intended to be the basis for transforming and/or debug drivers like trace and rbug. Authors of this patch are: Michal Krol, orignal heavy lifting. José Fonesca, object wrapping code stolen from trace. Jakob Bornecrantz, put it all toghether and renamed a stuff.
* | gallium-intel: Improve Xorg Makefile a bitJakob Bornecrantz2009-06-221-15/+27
| | | | | | | | | | The real solution is to create a Makefile.template for xorg drivers and use that here.
* | st/xorg: Convert to template makefileJakob Bornecrantz2009-06-221-24/+13
| |
* | st/dri: Fix typo when checking for depth formatsJakob Bornecrantz2009-06-221-1/+1
| |
* | i965simple: use u_reduced_prim() functionBrian Paul2009-06-191-16/+3
| |
* | draw: use u_reduced_prim() functionBrian Paul2009-06-194-28/+4
| |
* | softpipe: use u_reduced_prim()Brian Paul2009-06-191-15/+2
| |
* | gallium/util: s/boolean/unsigned/Brian Paul2009-06-191-1/+1
| |
* | softpipe: whitespace, reformattingBrian Paul2009-06-191-8/+5
| |
* | Merge branch 'ext-provoking-vertex'Brian Paul2009-06-197-125/+318
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
| * | draw: use flatfirst variableBrian Paul2009-06-181-1/+1
| | |
| * | draw: remove debug codeBrian Paul2009-06-181-7/+0
| | |
| * | draw: fix first provoking vertex mode for quads, quad strips and polygonsBrian Paul2009-06-181-18/+55
| | |
| * | draw: fix first provoking vertex mode for unfilled quadsBrian Paul2009-06-181-10/+24
| | |
| * | draw: clean up indentationBrian Paul2009-06-181-11/+11
| | |
| * | draw: implement flatshade_first for drawing pipelineBrian Paul2009-06-092-20/+67
| | |
| * | softpipe: implement flatshade_first for trianglesBrian Paul2009-06-091-58/+182
| | |
| * | softpipe: implement flatshade_first for line setupBrian Paul2009-06-091-1/+4
| | |
| * | Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"Brian Paul2009-06-033-6/+1
| | | | | | | | | | | | This reverts commit 5d75124db480b37977c353511b4e228905b7cc95.
* | | gallium dri st: Probe the driver for supported surface formats.Thomas Hellstrom2009-06-174-63/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done when constructing the fbconfigs, and the result is saved for window system framebuffer creation. Note: For dri2 the server needs to have an identical format selection logic. Otherwise the dri state-tracker and the xorg driver (state-tracker) will disagree on which format to use for the attachments. Some more work is needed in this area. Signed-off-by: Thomas Hellstrom <[email protected]>
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-1610-38/+86
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/mesa/main/api_validate.c
| * | softpipe: fix out of bounds quad rasterization bugBrian Paul2009-06-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark.
| * | gallium: Avoid atomic ops / locking when src is dst.José Fonseca2009-06-161-14/+14
| | |
| * | python/tests: Add is_depth_stencil_format utility function.José Fonseca2009-06-151-0/+8
| | |
| * | python/tests: Cleanup texture_sample.José Fonseca2009-06-151-18/+32
| | |
| * | rtasm: Use 32bit constant.José Fonseca2009-06-151-3/+3
| | | | | | | | | | | | As we're only using 32bit bitmasks.
| * | gallium: Ensure assert macro is defined before being used in p_thread.hJosé Fonseca2009-06-151-0/+1
| | |
| * | softpipe: Fix softpipe_is_texture_referenced.José Fonseca2009-06-154-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Render results are only visible when the render cache is flushed. softpipe_is_texture_referenced must reflect that or transfers to/from the textures bound in the framebuffer won't be proceeded of the necessary flush, causing transfer data to be outdated/clobbered. This fixes conform drawpix test with softpipe.
| * | dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵Thomas Hellstrom2009-06-151-2/+0
| | | | | | | | | | | | | | | | | | depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* | | Merge branch 'mesa_7_5_branch'Thomas Hellstrom2009-06-151-1/+5
|\| | | | | | | | | | | | | | | | | Conflicts: progs/util/extfuncs.h
| * | gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom2009-06-151-1/+5
| | | | | | | | | | | | | | | | | | 3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* | | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-06-122-11/+37
|\| |
| * | python/retrace: Show the contents of the depth/stencil and surfaces ↵José Fonseca2009-06-111-10/+28
| | | | | | | | | | | | before/after transfers.
| * | python/retrace: Interpret is_texture_referenced/is_buffer_referenced.José Fonseca2009-06-111-0/+8
| | |
| * | wgl: Fix prototype.José Fonseca2009-06-111-1/+1
| | |
* | | Merge branch 'mesa_7_5_branch'José Fonseca2009-06-111-1/+11
|\| |