summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa driconf: Add macro to specify an option with a quoted default value.Thomas Hellstrom2009-06-171-0/+4
| | | | | | | | | | The default values true and false will expand to "1" and "0" when gcc -std=c99, causing bool option defaults to generate runtime failures. One solution is to specify bool option defaults quoted as "true" and "false". Add a macro to assist this. Signed-off-by: Thomas Hellstrom <[email protected]>
* i965: Add decode for the G4X x,y offset in surface state.Eric Anholt2009-06-171-0/+2
|
* i965: Fix up texture layout for small things with wide pitches (tiled)Eric Anholt2009-06-171-1/+1
| | | | | | | We were packing according to the pitch, while the hardware appears to base it on the base level width. With this and the previous commit, fbo-cubemap now matches untiled behavior.
* i965: Fall back or appropriately adjust offsets of drawing to tiled regions.Eric Anholt2009-06-173-3/+54
| | | | | | 3D rendering to tiled textures was being done with non-tile-aligned offsets. The G4X hardware has fields to let us support it easily and correctly, while the pre-G4X hardware requires a path full of suffering, so we just fall back.
* r300: use vbo_split_prims to split up large vertex buffers.Dave Airlie2009-06-182-2/+11
| | | | This lets ut2004 avoid hitting the elt warning.
* i965: Fix tiling for FBO depth attachments by making DEPTH_COMPONENT Y tiled.Eric Anholt2009-06-172-4/+8
| | | | | This may hurt if miptree relayout occurs, since we can't blit Y tiled objects. But it corrects depth tests on FBOs using textures.
* radeon: don't re-add BOs to validate listDave Airlie2009-06-181-0/+7
| | | | | | if its on the list its on the list don't go readding it. multitexturing from the same texture could cause this.
* glsl: call _mesa_postprocess_program(), disabledBrian Paul2009-06-171-0/+8
|
* mesa: silence warningBrian Paul2009-06-171-0/+2
|
* mesa: added _mesa_postprocess_program() to aid shader debuggingBrian Paul2009-06-172-0/+60
|
* radeon: Flush command buffer on viewport changeJerome Glisse2009-06-171-0/+1
| | | | | | We flush the command buffer so we don't emit mixed state (with new and previous buffer size) command buffer, this is especialy affecting zbuffer states.
* r300: don't emit vap index offset on r5xx hw when using csJerome Glisse2009-06-171-1/+1
| | | | | | | vap index offset is programmed to 0 by the kernel, it would add work to kernel checker to allow userspace programming of this so it's now disallowed with CS on KMS.
* GLX: attempt to fix glean makeCurrent test cases.Dave Airlie2009-06-171-1/+5
| | | | | | | | | | | Two parts to this: One we don't keep pointers to possibly freed memory anymore once we unbind the drawables from the context. Brian I need to figure out what the comment you made there, can we get a glean/piglit test so we can fix it properly? If the new gc is the same as the oldGC, we call the unbind even though we just bound it in that function. doh.
* radeon: fix warnings in wrapper with libdrmDave Airlie2009-06-171-15/+15
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-06-1614-50/+109
|\ | | | | | | | | | | Conflicts: src/mesa/main/api_validate.c
| * i965: fix bugs in projective texture coordinatesBrian Paul2009-06-165-20/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the TXP instruction we check if the texcoord is really a 4-component atttibute which requires the divide by W step. This check involved the projtex_mask field. However, the projtex_mask field was being miscalculated because of some confusion between vertex program outputs and fragment program inputs. 1. Rework the size_masks calculation so we correctly set bits corresponding to fragment program input attributes. 2. Rename projtex_mask to proj_attrib_mask since we're interested in more than just texcoords (generic varying vars too). 3. Simply the indexing of the size_masks and proj_attrib_mask fields. 4. The tracker::active[] array was mis-dimensioned. Use MAX_PROGRAM_TEMPS instead of a magic number. 5. Update comments, add new assertions. With these changes the Lightsmark demo/benchmark renders correctly, until we eventually hit a GPU lockup...
| * mesa: fix incorrect viewport clamping in _mesa_set_viewport()Brian Paul2009-06-161-2/+2
| | | | | | | | | | A 0 by 0 viewport size is legal. Don't clamp against lower bound of one. The error checking earlier in the function prevents negative values.
| * mesa: fix REMAINDER() macroBrian Paul2009-06-161-1/+1
| | | | | | | | | | The results were incorrect for some negative values of A. See bug 21872.
| * intel: Release fb backing regions in intelDestroyBuffer()Shuang He2009-06-151-0/+24
| | | | | | | | Fixes memory leak when destroying framebuffers.
| * mesa: Always return a value.José Fonseca2009-06-151-0/+1
| |
| * mesa: Use appropriate float/integer types.José Fonseca2009-06-152-3/+3
| |
| * mesa: Use type modifier for float constants.José Fonseca2009-06-153-21/+21
| |
| * mesa: Use integer type with appropriate sign.José Fonseca2009-06-152-4/+4
| |
* | i965: handle OPCODE_SWZ in the glsl pathRoland Scheidegger2009-06-161-0/+1
| | | | | | | | | | | | glsl compiler will not generate OPCODE_SWZ, and as a first step it would be translated away to a MOV anyway (why?), but later internally this opcode is generated (for EXT_texture_swizzling).
* | Merge branch 'arb_map_buffer_range'Brian Paul2009-06-1522-4231/+4677
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html src/mesa/main/mtypes.h
| * | st/mesa: enable GL_ARB_map_buffer_rangeBrian Paul2009-06-081-0/+1
| | |
| * | mesa: implement GL_ARB_map_buffer_rangeBrian Paul2009-06-088-13/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only enabled for software drivers at this point. Note that the gl_buffer_object::Access enum field has been replaced by a gl_buffer_object::AccessFlags bitfield. The new field is a mask of the GL_MAP_x_BIT flags which is a superset of the old GL_READ_ONLY, GL_WRITE_ONLY and GL_READ_WRITE modes. When we query GL_BUFFER_ACCESS_ARB we translate the bitfield into the conventional enum values.
| * | mesa: regenerated files for GL_ARB_map_buffer_rangeBrian Paul2009-06-0810-4218/+4374
| | |
| * | glapi: hook in ARB_map_buffer_range.xmlBrian Paul2009-06-082-0/+3
| | |
| * | glapi: spec/xml file for GL_ARB_map_buffer_rangeBrian Paul2009-06-081-0/+34
| | |
| * | mesa: reorder fields, update comments for gl_buffer_objectBrian Paul2009-06-081-8/+11
| | |
* | | mesa: revert some recent VBO buffer object refcounting changesBrian Paul2009-06-152-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | Reverts part of commit d7ea9ddf5824556e47decac7ba200f37cf1e552f. We were calling _mesa_reference_buffer_object() on some heap-allocated memory that was uninitialized and could trigger an assertion. We can actually go back to "looser" ref counting of the Null/default buffer object in these cases.
* | | enable ARB_half_float_pixel for intel driversRoland Scheidegger2009-06-151-0/+1
| | |
* | | intel: fix (cosmetic) typo flag used twiceRoland Scheidegger2009-06-151-1/+0
| | |
* | | r300: fix 3D texturesMaciej Cencora2009-06-151-1/+20
| | |
* | | i965: interpolate colors with perspective correction by defaultBrian Paul2009-06-126-13/+38
| | | | | | | | | | | | | | | | | | | | | ...rather than with linear interpolation. Modern hardware should use perspective-corrected interpolation for colors (as for texcoords). glHint(GL_PERSPECTIVE_CORRECTION_HINT, mode) can be used to get linear interpolation if mode = GL_FASTEST.
* | | mesa: use larger initial refcount for NullBufferObjBrian Paul2009-06-121-1/+1
| | | | | | | | | | | | | | | Refcounting of the null/default buffer object isn't perfect yet so be extra safe.
* | | mesa: use _mesa_reference_buffer_object() in a few placesBrian Paul2009-06-121-5/+9
| | |
* | | mesa: use _mesa_reference_buffer_object() in a few placesBrian Paul2009-06-123-4/+10
| | |
* | | r300: add support for EXT_texture_sRGBMaciej Cencora2009-06-124-0/+27
| | | | | | | | | | | | Tested with glean/texture_srgb and wine/d3d9 tests on RV535
* | | set/mesa: enable GL_NV_texture_env_combine4Brian Paul2009-06-121-0/+1
| | | | | | | | | | | | | | | This is handled entirely in core Mesa where the combiner state is converted into a fragment program.
* | | st/mesa: additional debug code (disabled)Brian Paul2009-06-121-0/+20
| | |
* | | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-06-125-24/+88
|\ \ \ | | |/ | |/|
| * | mesa: Enable uploads of only depth to z24s8 texturesJakob Bornecrantz2009-06-121-3/+36
| | |
| * | mesa: rework vertex shader output / fragment shader input attribute matchingBrian Paul2009-06-111-20/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, if a vertex shader's outputs didn't exactly match a fragment shader's inputs we could wind up with invalid TGSI shader declarations. For example: Before patch: DCL OUT[0], POSITION DCL OUT[1], COLOR[1] DCL OUT[2], GENERIC[0] DCL OUT[3], GENERIC[0] <- note duplicate [0] DCL OUT[4], GENERIC[2] After patch: DCL OUT[0], POSITION DCL OUT[1], COLOR[1] DCL OUT[2], GENERIC[0] DCL OUT[3], GENERIC[1] DCL OUT[4], GENERIC[2]
| * | mesa: add default function for ctx->Driver.CheckQuery() hookBrian Paul2009-06-113-1/+19
| | |
* | | radeon: fix size of mipmap texture arrayDave Airlie2009-06-121-1/+3
| | |
* | | radeon/r200/r300: fix max texture levels assertDave Airlie2009-06-122-6/+3
| | | | | | | | | | | | use the actual value set in the context
* | | Merge remote branch 'main/radeon-rewrite'Dave Airlie2009-06-12118-18854/+16421
|\ \ \
| * | | r300: fix VAP setupMaciej Cencora2009-06-111-5/+6
| | | | | | | | | | | | | | | | If GL context had e.g. tex0, tex2 and fog the VAPOutputCntl1 returned 0x104 instead of 0x124 - that meaned we're sending only 8 texcoords (instead of 12) which ended up in GPU hang.