summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: s/sprintf/_mesa_snprintf/Vinson Lee2010-05-026-12/+12
|
* glsl: s/sprintf/_mesa_snprintf/Vinson Lee2010-05-017-29/+29
|
* glapi: s/strcpy/strncpy/Vinson Lee2010-05-011-1/+2
|
* st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium texturesBrian Paul2010-04-307-81/+122
| | | | | | | | | | | | | | | Previously, when we created a gallium texture for a corresponding Mesa texture we'd only allocate space for mipmap levels >= BaseLevel. This patch undoes that mechanism. This fixes a render-to-texture bug when rendering to level 0 when BaseLevel=1. Also, it makes sense to allocate the whole texture object memory when BaseLevel > 0 since a common use of GL_TEXTURE_BASE_LEVEL is to progressively load/render mipmaps. Eventually, the app almost always fills in the level=0 mipmap image. Finally, the texture image code is bit easier to understand now.
* x86-64: Make assembly routines .hidden like on x86Adam Jackson2010-04-301-0/+8
|
* st/mesa: remove unused/disabled codeBrian Paul2010-04-292-48/+0
|
* mesa: added _mesa_print_framebuffer() for debuggingBrian Paul2010-04-292-0/+44
|
* i965: Reject shaders with uninlined function calls instead of hanging.Eric Anholt2010-04-291-1/+33
| | | | | | Most of the failure from using uninlined function calls ends up being just bad rendering, but nested function calls in the VS currently hang the GPU, so reject them and explain why.
* mesa: Don't overwrite a driver's shader infolog with generic failure message.Eric Anholt2010-04-291-1/+4
|
* i965: Fix cube map layouts on Ironlake.Eric Anholt2010-04-294-68/+24
| | | | | | | | | We were doubling up the offsets for the mipmap levels for CPU access. Instead of reimplementing i945_miptree_layout_2d with 6 cube images separated by qpitch, share that function and provide the level offsets later. Fixes piglit cubemap and fbo-cubemap.
* i965: Implement VS MAX in a more obvious way.Eric Anholt2010-04-291-3/+3
| | | | | This should be functionally equivalent, with the possible exception of NaN handling.
* i965: Use immediate float operands for some VS instructions.Eric Anholt2010-04-291-0/+86
| | | | | We could use this to reduce constant register pressure, but for now it makes the resulting program assembly much more readable.
* st/mesa: move/improve Mesa GPU program debuggingBrian Paul2010-04-281-10/+11
| | | | | Print the program (plus its parameters) before calling st_translate_mesa_program() in case we die in that function.
* st/mesa: add missing debug entry for DEBUG_CONSTANTSBrian Paul2010-04-281-0/+1
|
* Merge branch '7.8'Brian Paul2010-04-282-2/+7
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_gen_mipmap.c
| * st/mesa: fix incorrect RowStride computationBrian Paul2010-04-281-1/+4
| | | | | | | | Fixes incorrect stride when getting a compressed tex image.
| * st/mesa: fill in stImage->level in st_generate_mipmap()Brian Paul2010-04-281-1/+3
| | | | | | | | | | Before, this field was always zero for all the new mipmap levels. Fixes problems with glGetTexImage() from a generated mipmap.
* | Merge branch '7.8'Brian Paul2010-04-281-0/+20
|\| | | | | | | | | | | | | Conflicts: src/glx/dri2_glx.c src/glx/glx_pbuffer.c
| * mesa: Disable scissor when begining meta operationsPierre Willenbrock2010-04-271-0/+1
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
| * mesa: Don't set srcLevel on GL_TEXTURE_RECTANGLE_ARB targetsPierre Willenbrock2010-04-271-4/+8
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
| * glapi: Fix loading of old DRI drivers.Chia-I Wu2010-04-271-0/+20
| | | | | | | | | | | | | | The removal of _glapi_noop_enable_warnings and _glapi_set_warning_func in e4f168a6f4911a096be97d2e83ef8ad9c5862ec0 prevents DRI drivers built before the commit from loading. Add stub versions of the functions to make them load again.
* | Disable scissor when begining meta operationsPierre Willenbrock2010-04-271-0/+1
| | | | | | | | Signed-off-by: Eric Anholt <[email protected]>
* | Don't set srcLevel on GL_TEXTURE_RECTANGLE_ARB targetsPierre Willenbrock2010-04-271-4/+8
| | | | | | | | Signed-off-by: Eric Anholt <[email protected]>
* | Fill the padding between entrys in the sampler keyPierre Willenbrock2010-04-271-1/+7
| | | | | | | | | | | | This struct is used to generate a hash, ignoring the entry boundaries. Signed-off-by: Eric Anholt <[email protected]>
* | i915: Add debugging for just prorgam compile under INTEL_DEBUG=wmEric Anholt2010-04-271-0/+11
| |
* | i915: Provide counts in the error messages for program limits.Eric Anholt2010-04-272-10/+19
| |
* | radeon: fix warningsMarek Olšák2010-04-281-1/+3
| |
* | Add missing _ in extension category nameIan Romanick2010-04-271-1/+1
| |
* | mesa: move/rename is_depth_or_stencil_format()Brian Paul2010-04-273-22/+30
| | | | | | | | Put it with other, similar functions.
* | st/mesa: rename var and update st_choose_format() commentsBrian Paul2010-04-271-47/+53
| |
* | st/mesa: call is_format_supported() for compressed formatsBrian Paul2010-04-271-4/+20
| | | | | | | | | | | | These compressed format switch cases shouldn't be hit if we don't support the compressed texture extensions, but let's be safe and ask the driver if they're supported as we do in other cases.
* | st/mesa: 80-column wrappingBrian Paul2010-04-271-14/+28
| |
* | st/mesa: try to get actual compressed format for GL_COMPRESSED_RGB[A] formatsBrian Paul2010-04-271-2/+20
| |
* | st/mesa: fix strides in (de)compress_image() functionsBrian Paul2010-04-271-14/+2
| | | | | | | | Mipmap generation for compressed textures works now.
* | dri_util: Assume error checking is done properly in glXMakeCurrentJakob Bornecrantz2010-04-271-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In short what the code did before: __DRIscreen *psp = NULL; if (pcp) psp = pcp->psb; assert(psp); if (psp->stuff) other_stuff(); return psb->even_more(pcp); Remove all that stupid checking which still segfaults/asserts later on and just do what we do in driUnbindContext. Also limited testing show libGL never call driUnbindContext or driBindContext with cPriv == NULL.
* | mesa: start adding GL 3.1 signed normalized texture formatsBrian Paul2010-04-266-8/+470
| |
* | r600: add support for more rendering formatsAlex Deucher2010-04-264-16/+295
| |
* | r600: avoid setting invalid bit on r7xx for blitsAlex Deucher2010-04-261-0/+4
| |
* | r600: enable VERT_RESULT_PSIZ - makes point size & attenuation workAndre Maasikas2010-04-262-2/+29
| | | | | | | | | | | | | | | | doc additions: shader export ARRAY_BASE for EXPORT_POS: 60 is position, 61 is misc vec(VS_OUT_MISC_VEC - used here), 62, 63 are clip distance vectors(VS_OUT_CCDIST#) sorry for formating - there seem to be so many different styles in r600
* | r600: adjust point sprites after 911fa4a4a1Andre Maasikas2010-04-261-10/+11
| | | | | | | | | | there's no more vp results for point coords so we cannot iterate over vp outputs. Use only Point.CoordReplace[i]
* | st_api: Remove st_moduleJakob Bornecrantz2010-04-262-18/+24
| | | | | | | | | | | | The struct st_module isn't needed as it is the same thing as the st_api struct. That is they both represent the API. Instead just use a single function entry point to the the API.
* | radeon: Remove NULL check of bo_legacy->tobj.Vinson Lee2010-04-241-2/+1
| | | | | | | | | | | | bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU. There is a NULL check earlier in the routine, and if bo_legacy->tobj is NULL, memory is allocated.
* | dri: Remove unnecessary header.Vinson Lee2010-04-241-1/+0
| |
* | mesa: Eliminate multiple va_list usage.José Fonseca2010-04-242-6/+8
| | | | | | | | | | | | | | va_list is a mutable iterator. When passed to a function it will likely point to somewhere else. This fixes segmentation fault in glean vertProg1 on Ubuntu 9.10.
* | st/mesa: checkpoint WIP: mipmap generation for compressed texturesBrian Paul2010-04-231-10/+102
| | | | | | | | | | Something is wrong with the images strides when compressing/decompressing images...
* | st/mesa: minor improvements in fallback_generate_mipmap()Brian Paul2010-04-231-10/+11
| |
* | st/mesa: remove unneeded #includes and add/update commentsBrian Paul2010-04-231-9/+7
| |
* | st/mesa: clean-up: use st_context() everywhereBrian Paul2010-04-2320-114/+138
| |
* | mesa: simplify some code in _mesa_generate_mipmap()Brian Paul2010-04-231-19/+10
| |
* | st/mesa: re-do binding flags in st_ChooseTextureFormat(), againBrian Paul2010-04-231-12/+17
| | | | | | | | | | | | | | | | | | | | Try to specify render target bindings flags first. If that fails, try again with just sampler view binding. Note that we try to create the texture resource with render target binding flags later when we allocate the texture. Then, in FBO validation, we check if we can actually render to the textures. If that fails, we generate GL_FRAMEBUFFER_UNSUPPORTED_EXT. Changes suggested by Jose.