summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* mesa: better error message for invalid texture unit indexBrian Paul2009-06-081-1/+4
|
* mesa: bump MAX_PROGRAM_ENV_PARAMS from 128 to 256Brian Paul2009-06-081-2/+2
| | | | Also, MAX_NV_VERTEX_PROGRAM_PARAMS should be 96, not 128 (or 256).
* mesa/vbo: drop all references to vbo on destroyKeith Whitwell2009-06-081-8/+21
| | | | | | We were adding references to the input arrays, but failing to drop them on destruction. This could lead to a 64kb buffer being leaked each context destruction.
* mesa: EXT_vertex_array_bgra fixesBrian Paul2009-06-081-3/+24
| | | | | | | | | | 1) Pass the correct format when calling update_array in _mesa_VertexAttribPointerARB. 2) glVertexAttribPointerNV accepts GL_BGRA format too. 3) raise INVALID_VALUE error when format is BGRA and normalized is false in glVertexAttribPointerARB (cherry picked from commit 4adb190a162c5ed0684a8616331344caadba4010)
* stw: If stfb not set don't call into mesaJakob Bornecrantz2009-06-081-1/+2
|
* mesa: bump version to 7.5-rc3mesa_7_5_rc3Brian Paul2009-06-051-1/+1
|
* osmesa: Allow building standalone in all three channel widthsDan Nicholson2009-06-041-27/+9
| | | | | | | | | | autoconf had been designating the 8 bit libOSMesa as the default standalone osmesa, but the Makefile expected it to be linked to libGL. Fix up the osmesa Makefile so that it allows any of the combinations of standalone and channel width to be built. Fixes bug #21980. (cherry picked from commit 7441dcd90b01df8351026af8bbb50e11bb86071a)
* softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul2009-06-041-2/+12
| | | | | | | Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a. (cherry picked from commit 086ecea179ed572c89aa77c5f465671a5cef87a7)
* softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul2009-06-041-1/+1
| | | | | | This fixes incorrect front/back-face orientation. (cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
* st/mesa: increase ST_MAX_SHADER_TOKENS to 8kBrian Paul2009-06-041-1/+1
|
* tgsi: increase MAX_LABELS to 4096Brian Paul2009-06-041-1/+1
|
* util: Unsaved change missing from last commit.José Fonseca2009-06-021-1/+1
|
* util: Support Z24S8/Z24X8 -> unsigned conversion.José Fonseca2009-06-021-0/+15
|
* util: Fix 24 to 32 bit expansion binary arithmetic expression.José Fonseca2009-06-021-1/+1
| | | | | | When approaching y = x * 0xffffffff / 0xffffff with bit arithmetic, the 8 least significant bits of y should come from the 8 most significant bits of x.
* mesa: release VBO and PBO references upon context destructionBrian Paul2009-06-021-0/+10
|
* mesa: add #define FEATURE_ARB_pixel_buffer_objectBrian Paul2009-06-021-0/+1
|
* intel: Clip to window after calling Driver.TexImage2DIan Romanick2009-06-021-9/+8
| | | | | | | | | | This prevents the width / height from being clipped to the window size before the texture is allocated. This matches intelCopyTexImage1D. This should fix bug #21227 Signed-off-by: Ian Romanick <[email protected]> (cherry picked from commit 129f311673c99eb912d659023e50bc5f0ef53249)
* gallium/draw: Free specialized versions of driver shadersKeith Whitwell2009-06-013-0/+13
| | | | | The pstipple, aaline and aapoint code would create specialized versions of shaders and upload them to the driver -- but never free them.
* draw: free more token arraysKeith Whitwell2009-06-012-5/+12
| | | | | The AA line and point code also needs to free token arrays after building driver shaders.
* draw: avoid leaking tokens when building pstipple fragment shaderKeith Whitwell2009-06-011-0/+1
| | | | Add missing FREE() after MALLOC().
* mesa/st: restore flush to copy_texsubimage (was previously finish)Keith Whitwell2009-06-011-0/+3
| | | | Need a flush here even though the original finish was overkill.
* wgl: Destroy the framebuffer when the window is destroyed.José Fonseca2009-06-011-24/+48
|
* st/gl: Fix mip gen for compressed texturesJakob Bornecrantz2009-06-011-6/+8
|
* st/mesa: fix incorrect sprite origin when drawing to FBO/textureBrian Paul2009-06-011-1/+2
| | | | | | | Need to take the draw buffer's up/down orientation into consideration when setting the sprite_coord_mode field. Fixes inverted sprites when drawing into an FBO.
* draw: reset extra_vp_outputs.slot to zero in widepoint_flush()Brian Paul2009-06-011-0/+1
| | | | | | | | | | | Fixes a crash when clearing the window with a quad after drawing large points. We were asking the draw module how many vertex shader outputs there were and got 3 instead of 2. This led to creating vertices with too many attributes and trying to read invalid memory. We reset extra_vp_outputs.slot to zero in the aaline/aapoint stage's flush functions already. This omission was just an oversight in the wide_point stage.
* wgl: Cleanup framebuffer destruction logic.José Fonseca2009-05-311-9/+4
|
* wgl: Ensure we only create framebuffers for HDC associated with a window.José Fonseca2009-05-311-1/+7
|
* wgl: Use the right pixel format.José Fonseca2009-05-309-202/+301
| | | | | | | | There is no current pixel format. Each HDC has its pixelformat which is kept by gdi and set/get via the SetPixelFormat/GetPixelFormat functions. Now the HDC's pixelformat is kept in the stw_framebuffer, which is created during the SetPixelFormat.
* wgl: Fix debugging output.José Fonseca2009-05-301-9/+27
|
* wgl: Rename function.José Fonseca2009-05-301-2/+2
|
* wgl: Remove unused field.José Fonseca2009-05-302-2/+0
|
* mesa: Output warnings to debugger on Windows.José Fonseca2009-05-301-0/+10
| | | | | Stderr of Windows applications without console is not usually visible.
* mesa: Check/propagate return value on st_make_current.José Fonseca2009-05-302-8/+11
| | | | | Prevents segmentation fault when trying to set the viewport/scissor after a context/drawable visual mismatch.
* mesa: Add success/failures return value to _mesa_make_current.José Fonseca2009-05-302-4/+6
|
* softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGONBrian Paul2009-05-301-1/+15
| | | | | | | This fixes the incorrect colors seen when rendering flat-shaded polygons. Note that clipped polygons were correct, but unclipped polygons were wrong. See the glean/clipFlat test for regression testing.
* mesa: fix loop over generic attribs in update_arrays()Brian Paul2009-05-221-1/+1
|
* vbo: fix crash in vbo_exec_bind_arrays()Brian Paul2009-05-221-0/+1
| | | | | | | | | When a vertex shader uses generic vertex attribute 0, but not gl_Vertex, we need to set attribute[16] to point to attribute[0]. We were setting the attribute size, but not the pointer. Fixes crash in glsl/multitex.c when using the VertCoord attribute instead of gl_Vertex.
* mesa: allow GL_BITMAP type in _mesa_image_image_stride()Brian Paul2009-05-221-13/+23
| | | | | | | It's possible to hand a GL_COLOR_INDEX/GL_BITMAP image to glTexImage3D() which gets converted to RGBA via the glPixelMap tables. This fixes a failure with piglit/fdo10370 with Gallium.
* mesa: added commentBrian Paul2009-05-221-0/+1
|
* mesa: add missing glGet*() case for GL_VERTEX_ARRAY_BINDING_APPLEBrian Paul2009-05-212-1/+16
|
* vbo: fix incorrect loop limit in bind_array_obj()Brian Paul2009-05-211-1/+4
| | | | | | The generic_array[] is 16 elements in size, but the loop was doing 32 iterations. The out of bounds array write was clobbering the following inputs[] array but as luck would have it, that didn't matter.
* mesa: use MAX_ values instead of literalsBrian Paul2009-05-211-2/+2
|
* mesa: allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENTMathias Fröhlich2009-05-191-4/+14
| | | | See sourceforge bug #2793846.
* mesa: assign trb->Base.StencilBits in update_wrapper().Brian Paul2009-05-191-0/+1
| | | | When we render to a depth/stencil texture there are stencil bits.
* st/mesa: fix incorrect src/dst stride params to _mesa_generate_mipmap_level()Brian Paul2009-05-181-2/+6
| | | | The stride needs to be in texels, not bytes.
* mesa: comments for _mesa_generate_mipmap_level()Brian Paul2009-05-181-0/+3
|
* softpipe: add texture target sanity check assertionBrian Paul2009-05-181-0/+5
|
* st: fix incorrect target parameter to screen->is_format_supported()Brian Paul2009-05-181-1/+1
| | | | We were passing a GL texture target instead of a pipe_texture_target enum.
* Initialize psp->waitX/waitGL for swrast_dri.so.Aidan Thornton2009-05-181-0/+2
| | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21053 .
* mesa: bump version to 7.5-rc2mesa_7_5_rc2Brian Paul2009-05-151-1/+1
|