summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: use Elements() as limit in loops over texture/program matrix stacksBrian Paul2010-02-031-4/+4
|
* mesa: add out of bounds assertions for accessing texture matrix stackBrian Paul2010-02-031-0/+2
|
* Merge branch 'gallium-embedded'José Fonseca2010-02-0321-14/+21
|\
| * gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca2010-02-0220-14/+20
| |
| * mesa: Add missing includes.José Fonseca2010-02-011-0/+1
| |
* | mesa: Factor out the fb initialization details from _mesa_new_framebuffer.Francisco Jerez2010-02-0310-21/+42
| | | | | | | | | | | | | | | | | | | | | | This should make things easier for drivers wanting to work with a "subclass" of gl_framebuffer. The complementary "_mesa_initialize_framebuffer" function is now called "_mesa_initialize_window_framebuffer" for the sake of symmetry. Signed-off-by: Brian Paul <[email protected]>
* | vbo: fix void * arithmetic warningKeith Whitwell2010-02-031-1/+2
| |
* | vbo: Fix up in-place splitting for non-contiguous/indexed primitives.Francisco Jerez2010-02-031-51/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The in-place splitting code wasn't dealing with index buffers at all (and it was being called from vbo_split_prims for too big index buffers, causing some occasional corruption). Additionally, it wasn't taking into account primitives arrays with non-contiguous indices (e.g. given prim[0].start = 0 and prim[1].start = max_verts, it would happily call back the driver with (max_index - min_index) still greater than max_verts, causing infinite recursion). It still doesn't handle too large indexed vertex buffers: use vbo_split_copy for that.
* | mesa/st: bump the gallium version numberKeith Whitwell2010-02-031-1/+1
| | | | | | | | | | This is a very informal version number, but there have been enough changes that a bump is appropriate at this time.
* | st/mesa: remove some floating point divides in viewport calculationKeith Whitwell2010-02-031-3/+3
| | | | | | | | | | Compiler can't usually turn x/2.0f into x * 0.5f, though we're happy with either.
* | r300: fix compiler bugs introduced with MRT changes.Dave Airlie2010-02-032-2/+3
| | | | | | | | | | | | | | the first looks like a definite bug, the second I'm not so confident of but it works. Signed-off-by: Dave Airlie <[email protected]>
* | Track frag shader changes introduced by commit ↵Scott Moreau2010-02-021-1/+1
| | | | | | | | | | | | 4769566500be1a53dd9b4cc1a613aef439a0e3d8 Signed-off-by: Corbin Simpson <[email protected]>
* | 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