Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | i965: fix bugs in projective texture coordinates | Brian Paul | 2009-06-16 | 5 | -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... | ||||
* | softpipe: fix out of bounds quad rasterization bug | Brian Paul | 2009-06-16 | 1 | -3/+6 |
| | | | | | | | | For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark. | ||||
* | mesa: fix incorrect viewport clamping in _mesa_set_viewport() | Brian Paul | 2009-06-16 | 1 | -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() macro | Brian Paul | 2009-06-16 | 1 | -1/+1 |
| | | | | | The results were incorrect for some negative values of A. See bug 21872. | ||||
* | gallium: Avoid atomic ops / locking when src is dst. | José Fonseca | 2009-06-16 | 1 | -14/+14 |
| | |||||
* | progs/wgl: Quit after displaying usage for -h option. | José Fonseca | 2009-06-16 | 1 | -0/+1 |
| | |||||
* | progs/wgl: Use appropriate types to silence msvc warnings. | José Fonseca | 2009-06-16 | 1 | -7/+7 |
| | |||||
* | progs/wgl: Fix assertion failure in wglthreads' texture creation. | José Fonseca | 2009-06-16 | 1 | -8/+10 |
| | |||||
* | intel: Release fb backing regions in intelDestroyBuffer() | Shuang He | 2009-06-15 | 1 | -0/+24 |
| | | | | Fixes memory leak when destroying framebuffers. | ||||
* | python/tests: Add is_depth_stencil_format utility function. | José Fonseca | 2009-06-15 | 1 | -0/+8 |
| | |||||
* | python/tests: Cleanup texture_sample. | José Fonseca | 2009-06-15 | 1 | -18/+32 |
| | |||||
* | mesa: Always return a value. | José Fonseca | 2009-06-15 | 1 | -0/+1 |
| | |||||
* | mesa: Use appropriate float/integer types. | José Fonseca | 2009-06-15 | 2 | -3/+3 |
| | |||||
* | mesa: Use type modifier for float constants. | José Fonseca | 2009-06-15 | 3 | -21/+21 |
| | |||||
* | mesa: Use integer type with appropriate sign. | José Fonseca | 2009-06-15 | 2 | -4/+4 |
| | |||||
* | rtasm: Use 32bit constant. | José Fonseca | 2009-06-15 | 1 | -3/+3 |
| | | | | As we're only using 32bit bitmasks. | ||||
* | gallium: Ensure assert macro is defined before being used in p_thread.h | José Fonseca | 2009-06-15 | 1 | -0/+1 |
| | |||||
* | softpipe: Fix softpipe_is_texture_referenced. | José Fonseca | 2009-06-15 | 4 | -0/+22 |
| | | | | | | | | | Render results are only visible when the render cache is flushed. softpipe_is_texture_referenced must reflect that or transfers to/from the textures bound in the framebuffer won't be proceeded of the necessary flush, causing transfer data to be outdated/clobbered. This fixes conform drawpix test with softpipe. | ||||
* | progs/tests: Use opaque colors. | José Fonseca | 2009-06-15 | 1 | -2/+2 |
| | | | | | Transparency is not relevant for this example, and leads to distraction due to different results in alpha visuals, when capturing images to disk. | ||||
* | dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵ | Thomas Hellstrom | 2009-06-15 | 1 | -2/+0 |
| | | | | | | depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | ||||
* | gallium: Fix segfault and valgrind error introduced with commit ↵ | Thomas Hellstrom | 2009-06-15 | 1 | -1/+5 |
| | | | | | | 3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | ||||
* | demos: update fbotexture.c to use EXT or ARB functions exclusively | Brian Paul | 2009-06-12 | 2 | -38/+77 |
| | | | | | | | | | When the -arb option is specified we use GL_ARB_framebuffer_object intead of GL_EXT_framebuffer_object. For some vendors' OpenGL it's important to call the ARB entrypoints instead of the EXT entrypoints to get correct behaviour. Use some function pointer tricks to do this (instead of GLEW). | ||||
* | util: additional function pointers | Brian Paul | 2009-06-12 | 1 | -0/+101 |
| | |||||
* | mesa: Enable uploads of only depth to z24s8 textures | Jakob Bornecrantz | 2009-06-12 | 1 | -3/+36 |
| | |||||
* | mesa: rework vertex shader output / fragment shader input attribute matching | Brian Paul | 2009-06-11 | 1 | -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() hook | Brian Paul | 2009-06-11 | 3 | -1/+19 |
| | |||||
* | python/retrace: Show the contents of the depth/stencil and surfaces ↵ | José Fonseca | 2009-06-11 | 1 | -10/+28 |
| | | | | before/after transfers. | ||||
* | python/retrace: Interpret is_texture_referenced/is_buffer_referenced. | José Fonseca | 2009-06-11 | 1 | -0/+8 |
| | |||||
* | wgl: Fix prototype. | José Fonseca | 2009-06-11 | 1 | -1/+1 |
| | |||||
* | mesa: Use new pf_is_depth_and_stencil inline. | José Fonseca | 2009-06-11 | 1 | -16/+2 |
| | |||||
* | gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines. | José Fonseca | 2009-06-11 | 1 | -1/+11 |
| | |||||
* | mesa: Use PIPE_TEXTURE_USAGE_DEPTH_STENCIL for any depth or stencil format. | José Fonseca | 2009-06-11 | 2 | -7/+11 |
| | |||||
* | mesa: Remove dead code. | José Fonseca | 2009-06-11 | 1 | -3/+0 |
| | |||||
* | st/mesa: fix typo s/BFC0/BFC1/ | Brian Paul | 2009-06-11 | 1 | -2/+2 |
| | |||||
* | vbo: fix assertion, #define IMM_BUFFER_NAME | Brian Paul | 2009-06-11 | 1 | -2/+7 |
| | | | | | This was sometimes seen when Glean exited upon test failure when using Gallium. | ||||
* | python/tests: Test sampling from a depth texture. | José Fonseca | 2009-06-11 | 1 | -7/+216 |
| | |||||
* | mesa: Only do read write when we don't have a depth value to write | Jakob Bornecrantz | 2009-06-11 | 1 | -1/+1 |
| | |||||
* | progs: Port fp programs to GLEW. | José Fonseca | 2009-06-11 | 10 | -26/+50 |
| | |||||
* | mesa: Take the format from the right structure. | José Fonseca | 2009-06-11 | 1 | -1/+1 |
| | |||||
* | meas: Use a read/write transfer when writing stencil component, but not ↵ | José Fonseca | 2009-06-11 | 1 | -2/+23 |
| | | | | touching the depth component. | ||||
* | mesa: Reverse s8z24 into z24s8 as required by EXT_packed_depth_stencil. | José Fonseca | 2009-06-10 | 1 | -2/+7 |
| | | | | | | Actually, after spotting this problem, I realized this is unreachable code. However don't bother to enable this fast path now, given the normal path is working just fine. | ||||
* | mesa: Fix typo in bitmask. | José Fonseca | 2009-06-10 | 1 | -1/+1 |
| | |||||
* | mesa: Fix draw_stencil_pixels for PIPE_FORMAT_Z24S8_UNORM. | José Fonseca | 2009-06-10 | 1 | -1/+1 |
| | | | | | | | Reversed component order. This fixes glean depthStencil test failures for PIPE_FORMAT_Z24S8_UNORM visuals. | ||||
* | glsl: fix warnings, update comments, s/TRUE/GL_TRUE/ | Brian Paul | 2009-06-10 | 1 | -3/+4 |
| | | | | (cherry picked from master, commit 7fdd64ab29576e607434fb8c82ddfa61e8ea6aa8) | ||||
* | glsl: Handle continuation characters in preprocessor. | Brian Paul | 2009-06-10 | 1 | -1/+67 |
| | | | | (cherry picked from master, commit cc22620e4b11425997f3bc1fc70f4c88cec22d2e) | ||||
* | swrast: fix state validation bug for changing program constants | Brian Paul | 2009-06-10 | 1 | -0/+1 |
| | | | | | | | Add _NEW_PROGRAM_CONSTANTS to _SWRAST_NEW_DERIVED. This makes sure that we update the fragment shader's constants when state vars (such as point size) changes. Fixes the progs/glsl/points.c demo. | ||||
* | glsl: Fix symbol replacement handling in preprocessor. | Brian Paul | 2009-06-10 | 1 | -13/+15 |
| | | | | (cherry picked from master, commit d9617deb008b75f4a605a30408aeb1948139c33e) | ||||
* | mesa: disable texture unit error check in _mesa_MatrixMode() | Brian Paul | 2009-06-10 | 1 | -0/+10 |
| | | | | See comments for details. | ||||
* | docs: document GLSL preprocessor fixes | Brian Paul | 2009-06-10 | 1 | -0/+1 |
| | |||||
* | util: Single precision constants. | José Fonseca | 2009-06-10 | 1 | -1/+1 |
| |