aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
...
* | mesa: Add a BITSET_FFS function.Francisco Jerez2010-02-021-1/+24
| | | | | | | | | | | | | | It will be useful for the nouveau DRI driver and IMHO there's no reason to keep it private. Signed-off-by: Brian Paul <[email protected]>
* | r300compiler: Add MRT number to debugging output.Corbin Simpson2010-02-022-4/+4
| |
* | r300compiler, r300 classic, r300g: Add support for MRTs in the frag shader.Corbin Simpson2010-02-027-11/+33
| | | | | | | | This maybe breaks the vert compiler. Hopefully not.
* | r200: Fix EXT_fogcoord rendering.Pauli Nieminen2010-02-021-2/+2
| | | | | | | | | | The fogcoord calue was not pushed to GPU because of implicit float to int conversion. Fix is to use float pointer to buffer object so no conversion is done in assigment
* | st/mesa: fix texture deallocation bugBrian Paul2010-02-011-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug reported by Christoph Bumiller on mesa3d-dev. When a texture is first created as RGBA, then re-defined with glTexImage(internalFormat=GL_DEPTH_COMPONENT) we failed to deallocate the original texture. When this texture was bound as a FBO surface, the depth/Z surface format was RGBA instead of Z. Depending on the driver this led to a failed assertion or FBO validation failure. This patch does three things: 1. Remove ancient code that mysteriously tested if we were replacing the smallest mipmap level and tested if the texture was not a cube map texture. I can't see any reason for those tests. 2. Move the width=height=depth=0 test to after the code which frees texture data. Calling glTexImage with width=height=depth=0 and data=NULL is a way to free a single mipmap level. 3. Update the code comments. There are no apparent conform, glean or piglit regressions from this change. (cherry picked from commit 43e4b584227534e30e487e7fb7e99d6501cbcd85)
* | mesa: change _mesa_find_free_register() to find multiple free regsBrian Paul2010-02-013-29/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, _mesa_find_free_register() would scan the given shader to find a free/unused register of the given type. But subsequent calls would return the same register again. This caused a failure in the _mesa_remove_output_reads() function which sometimes needs several free temps. Now use a new function which build a vector of 'used' flags and another function which searches that vector for an unused register starting at a position that's incremented for each call. Fixes fd.o bug 26317. Note that a regression test for this has been added to the glean/glsl1 test. (cherry picked from commit e0d01c9d7f46ccd531f8dd1a04c5ac067200ef1e)
* | st/mesa: remove duplicate calculation of fp input mappingKeith Whitwell2010-02-015-37/+12
| | | | | | | | | | This was being calculated the same way in two different places. Now just do it in st_translate_fragment_program().
* | st/mesa: remove dead stfp input_map arrayKeith Whitwell2010-02-012-12/+0
| | | | | | | | Was being calculated and not used. Also was probably incorrect...
* | mesa: added _mesa_print_vp/p_inputs() functions (debug aids)Brian Paul2010-02-012-0/+47
| |
* | glslcompiler: add glapi_nop.o to OBJECTSBrian Paul2010-02-011-0/+1
|/
* mesa: Remove unnecessary headers.Vinson Lee2010-02-013-7/+0
|
* r600: Remove duplicate assignment.Vinson Lee2010-01-311-1/+1
|
* st/mesa: Remove unnecessary headers.Vinson Lee2010-01-313-3/+0
|
* mesa: Remove unnecessary headers.Vinson Lee2010-01-314-10/+0
|
* i965: Silence uninitialized variable warning.Vinson Lee2010-01-311-1/+1
|
* radeon: Remove unnecessary headers.Vinson Lee2010-01-3013-40/+0
|
* r600: Remove unnecessary headers.Vinson Lee2010-01-3011-24/+0
|
* r300: Remove unnecessary headers.Vinson Lee2010-01-301-2/+0
|
* r200: Remove unnecessary headers.Vinson Lee2010-01-309-24/+0
|
* r128: Remove unnecessary headers.Vinson Lee2010-01-309-20/+0
|
* intel: Remove unnecessary headers.Vinson Lee2010-01-306-8/+0
|
* i965: Remove unnecessary headers.Vinson Lee2010-01-303-3/+0
|
* i915: Remove unnecessary headers.Vinson Lee2010-01-302-2/+0
|
* intel: Respect texture tiling when doing a PBO blit teximage upload.Eric Anholt2010-01-301-1/+2
| | | | Bug #26008. Fixes piglit pbo-teximage-tiling-2.
* intel: Fix inverting of inversion test for windows in glClear cleanup.Eric Anholt2010-01-301-2/+2
| | | | Bug #26290.
* Merge commit 'lb2/arb_fragment_coord_conventions'Keith Whitwell2010-01-293-4/+74
|\
| * st/mesa: Gallium support for ARB_fragment_coord_conventions (v4)Luca Barbieri2010-01-292-3/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v4; - Implemented Brian Paul's style suggestions Changes in v3: - Use positive caps instead of negative ones Changes in v2: - Updated formatting The state tracker will use the TGSI convention properties if the hardware exposes the appropriate capability, and otherwise adjust WPOS itself. This will also fix some drivers that were previously broken due to their incorrect, inadvertent, use of conventions other than upper_left+half_integer.
| * mesa: don't expose GL_ARB_fragment_coord_conventions until the GLSL part is doneLuca Barbieri2010-01-291-1/+2
| | | | | | | | | | | | | | | | Exposing it was incorrect, as the GLSL part of the extension is missing. We still keep the ARB_fragment_coord_conventions field, so that the ARBfp parser can know whether to accept or reject the keywords.
* | tnl: check that state is validated before drawingBrian Paul2010-01-291-0/+3
| | | | | | | | | | | | | | | | (cherry picked from commit 9fd3c74724e557bc6ecc851d8552615ab3becfe2) Conflicts: src/mesa/tnl/t_draw.c
* | st/mesa: check that state is validated before drawingBrian Paul2010-01-291-0/+3
| | | | | | | | | | | | | | | | (cherry picked from commit 4d1234e22242529c8d85f5ef0cf826af41a91570) Conflicts: src/mesa/state_tracker/st_draw.c
* | vbo: fix missing state validation bugsBrian Paul2010-01-291-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2708ddfb06a36d8568e2aa130bf1f7d551fcd309 caused a few regressions. We need to check/validate state after calling bind_arrays() because it might set the _NEW_ARRAYS flag if the varying VP inputs change. The symptom of this problem was some attribute arrays being ignored (or interpreted as constant-valued) in glDrawRangeElements or glMultiDrawElements. A follow-on patch will add some additional asserts to try to catch this kind of thing in the future. (cherry picked from commit 3cba779e16935f7c3a0bfd8af48bd5e015068e96)
* | mesa: do state validation in _mesa_valid_to_render()Brian Paul2010-01-292-9/+4
| | | | | | | | | | | | | | | | | | ...rather than checking/validating before all the calls to _mesa_valid_to_render() and valid_to_render(). The next patch will actually fix some bugs... (cherry picked from commit 23eda89ec89e2bd5bc26077bd56e8d6b5d4040d4)
* | windows: assorted build fixesBrian Paul2010-01-292-14/+2
| | | | | | | | | | | | | | These changes were originally submitted by Karl Schultz for Mesa 7.7-rc2 but weren't applied. (cherry picked from commit 82c76cd16f35f4d903f49761af7eb28a755ad299)
* | mesa: Warn when indices are out of bounds, but do not skip the draw in debug ↵Brian Paul2010-01-291-3/+1
|/ | | | | | | | | | | | builds. The driver (or preferably the hardware) should handle out of bounds indices. If there are problems then it's better to detect those in the debug builds. (cherry picked from commit e3257912e006120f6ab611e77005eed1a464030a)
* intel: Set the region's tiling to none when attaching a PBO to a region.Eric Anholt2010-01-281-0/+1
| | | | | | | | Note that when detaching the PBO from the region and making a new BO for the region, we don't make it tiled even if the region originally was. Fixes piglit pbo-teximage-tiling.
* i915: Remove unused initial and current state, now that there's nothing else.Eric Anholt2010-01-286-22/+10
|
* intel: Remove long-disabled meta readpixels, and associated meta support.Eric Anholt2010-01-2811-1178/+20
|
* Merge commit 'origin/perrtblend'Roland Scheidegger2010-01-283-39/+94
|\ | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_screen.c src/gallium/include/pipe/p_defines.h
| * mesa/st: code cleanups for new blend functionalityRoland Scheidegger2010-01-261-9/+23
| | | | | | | | minor code changes, style and comment fixes
| * st/mesa: handle EXT_draw_buffers2 per rendertarget blend enables / colormasksRoland Scheidegger2010-01-252-31/+72
| | | | | | | | uses the new gallium per-rt blend functionality
| * gallium: prepare for per-rendertarget blend enables, writemasks, blend funcsRoland Scheidegger2010-01-202-23/+23
| | | | | | | | | | | | | | | | GL 3.0 (EXT_draw_buffers2) and other APIs allow independent blend enables and write masks per render target, ARB_draw_buffers_blend (and other APIs) also allow independent blend functions. Things like dithering, logic ops however are not extended to be per rendertarget, that might be conceptually possible however it doesn't look like any API wants to expose this.
* | gallium: Enable multiple constant buffers for vertex and geometry shaders.Michal Krol2010-01-281-1/+1
| |
* | radeon: Silence "format" compiler warnings.Vinson Lee2010-01-281-1/+1
| |
* | swrast: s/FIXED_TO_FLOAT/FixedToFloat/Brian Paul2010-01-271-2/+2
| |
* | mesa: fix int/uint comparison warningsBrian Paul2010-01-272-6/+8
| | | | | | | | Reported by Karl Schultz.
* | mesa: fix double->float assignment warnings, int/uint comparison warningsBrian Paul2010-01-276-14/+14
| | | | | | | | Reported by Karl Schultz.
* | mesa: fix double->float assignment warningsBrian Paul2010-01-271-3/+3
| | | | | | | | Reported by Karl Schultz.
* | mesa: fix int/uint comparison warningsBrian Paul2010-01-272-7/+7
| | | | | | | | Reported by Karl Schultz.
* | tnl: fix double->float and int/uint conversion warningsBrian Paul2010-01-273-3/+3
| | | | | | | | Reported by Karl Schultz.
* | swrast: silence double->float assignment warningsBrian Paul2010-01-2711-52/+53
| | | | | | | | Reported by Karl Schultz.