Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl: asst. clean-ups in set_program_uniform() | Brian Paul | 2009-08-26 | 1 | -14/+7 |
| | | | | | Remove redunant type check for samplers (assert instead). Move some local vars. Update comments. | ||||
* | progs/glsl: asst. changes in shtest.c | Brian Paul | 2009-08-26 | 1 | -3/+16 |
| | |||||
* | i965: added texture unit sanity check | Brian Paul | 2009-08-26 | 1 | -0/+13 |
| | | | | | Check that all the textures needed by the current fragment program actually exist and are valid. | ||||
* | i965: keep track of which texture units the fragment shader accesses | Brian Paul | 2009-08-26 | 2 | -3/+18 |
| | | | | We'll use this for debug/sanity checking. | ||||
* | i965: clean up texture target switches | Brian Paul | 2009-08-26 | 1 | -2/+10 |
| | |||||
* | mesa: var renaming, new assertion | Brian Paul | 2009-08-26 | 1 | -4/+5 |
| | |||||
* | mesa: additional instruction field size assertions | Brian Paul | 2009-08-26 | 1 | -0/+6 |
| | |||||
* | Merge branch 'mesa_7_5_branch' | Brian Paul | 2009-08-26 | 4 | -7/+24 |
|\ | |||||
| * | progs/glsl: add special Makefile rule for samplers_array | Brian Paul | 2009-08-26 | 1 | -1/+3 |
| | | |||||
| * | progs/glsl: change samplers.c to better test sampler/texture indexing | Brian Paul | 2009-08-26 | 1 | -4/+12 |
| | | | | | | | | | | Now the left half is yellow and the right half is red, with the gradients going in opposite directions. | ||||
| * | glsl: fix bug in sampler array indexing | Brian Paul | 2009-08-26 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | | | | Need to add the 'offset' parameter when indexing the parameter array. Before, if we were setting arrays of samplers, we were actually only setting the 0th sampler's value. Because of how progs/glsl/samplers.c is constructed, this wasn't showing up as a failure in the samplers_array output. | ||||
| * | ARB prog: Set error instead of falling through with incorrect value | Brian Paul | 2009-08-24 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a fragment program only parameter was queried of a vertex program (e.g., GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB) no error would be set and a random value would be returned. This caused 'glxinfo -l' to show the same values for GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB as for GL_MAX_PROGRAM_ENV_PARAMETERS_ARB. This is confusing and incorrect. (cherry picked from master, commit 4bccd693a72a0b42dffc849034263a68e779ca91) | ||||
| * | docs: recent 7.5.1 bug fixes | Brian Paul | 2009-08-24 | 1 | -0/+2 |
| | | |||||
| * | xlib: fix single buffer window resize bug | Brian Paul | 2009-08-24 | 1 | -0/+1 |
| | | | | | | | | | | | | When a single-buffered window was resized the new window size was never detected. This fix that, but there's still a bug which causes window contents corruption for certain window sizes... | ||||
| * | vbo: fix divide by zero exception | Brian Paul | 2009-08-24 | 1 | -1/+1 |
| | | | | | | | | Fixes bug 23489. | ||||
| * | glsl: Silence gcc uninitialized variable warning. | Vinson Lee | 2009-08-24 | 1 | -1/+1 |
| | | |||||
| * | st/mesa: flush bitmap cache if Z value changes | Brian Paul | 2009-08-21 | 1 | -5/+11 |
| | | | | | | | | | | | | | | When adding a new bitmap to the cache we have to check if the Z value is changing and flush first if it is. This is a modified version of a patch from Justin Dou <justin.dou@intel.com> | ||||
| * | tgsi: check for SOA dependencies in SSE and PPC code generators | Brian Paul | 2009-08-20 | 2 | -0/+8 |
| | | | | | | | | Fall back to interpreter for now. This doesn't happen very often. | ||||
| * | tgsi: handle SOA dependencies for MOV/SWZ | Brian Paul | 2009-08-20 | 2 | -14/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SOA dependencies can happen when a register is used both as a source and destination and the source is swizzled. For example: MOV T, T.yxwz; would expand into: MOV t0, t1; MOV t1, t0; MOV t2, t3; MOV t3, t2; The second instruction will produce the wrong result since we wrote to t0 in the first instruction. We need to use an intermediate temporary to fix this. This will take more work to fix for all TGSI instructions. This seems to happen with MOV instructions more than anything else so fix that case now and warn on others. Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317. | ||||
| * | tgsi: added tgsi_full_instruction::Flags field | Brian Paul | 2009-08-20 | 2 | -0/+3 |
| | | | | | | | | Users of the parser can make use of this. | ||||
* | | progs/glsl: handle window resizes in texaaline.c | Brian Paul | 2009-08-26 | 1 | -8/+12 |
| | | |||||
* | | r600: fix two sided stencil | Alex Deucher | 2009-08-26 | 1 | -14/+4 |
| | | |||||
* | | r600: add missing radeon_cs_space_set_flush call | Alex Deucher | 2009-08-26 | 1 | -0/+3 |
| | | | | | | | | fixes crash in etracer reported by kdekorte on IRC | ||||
* | | st/xorg: create basic vertex shader | Zack Rusin | 2009-08-26 | 2 | -8/+37 |
| | | |||||
* | | st/xorg: create basic fragment shader | Zack Rusin | 2009-08-26 | 1 | -26/+10 |
| | | |||||
* | | r600: make reloc_chunk size dynamic | Alex Deucher | 2009-08-26 | 2 | -5/+10 |
| | | |||||
* | | r600: fix memory leak | Alex Deucher | 2009-08-26 | 1 | -1/+2 |
| | | |||||
* | | r300: r4xx and rs4xx also have lte discard regs | Alex Deucher | 2009-08-26 | 1 | -1/+4 |
| | | |||||
* | | st/dri: Add some debug code | Jakob Bornecrantz | 2009-08-26 | 1 | -2/+6 |
| | | |||||
* | | st/xorg: Temporary fix for none stencil visuals | Jakob Bornecrantz | 2009-08-26 | 1 | -2/+17 |
| | | | | | | | | | | Should be replaced with something looking at the proper glx visual for the buffers. | ||||
* | | st/xorg: Find out correct type for depth stencil buffers | Jakob Bornecrantz | 2009-08-26 | 2 | -1/+13 |
| | | |||||
* | | st/dri: Redo config generation | Jakob Bornecrantz | 2009-08-26 | 2 | -52/+87 |
| | | |||||
* | | st/xorg: Add support for dirty framebuffer region reporting. | Michel Dänzer | 2009-08-26 | 3 | -1/+86 |
| | | | | | | | | | | | | | | | | | | Add a BlockHandler which flushes the context and reports the dirty region gathered using the X server damage layer. In the interim, with dirty region reporting only allocate textures for the framebuffer and shared pixmaps (e.g. DRI2 buffers) and fall back to software for other pixmaps. This will be improved in the future. | ||||
* | | r600: Update vertex fetch shader if necessary | Cooper Yuan | 2009-08-26 | 3 | -6/+19 |
| | | |||||
* | | st/dri: make the GL_ARB_map_buffer_range entrypoints available | Ben Skeggs | 2009-08-26 | 1 | -0/+2 |
| | | |||||
* | | radeon/r100/r200: actually init the OQ support properly | Dave Airlie | 2009-08-26 | 3 | -0/+3 |
| | | |||||
* | | radeon/r200: OQ support for r200 in theory. | Dave Airlie | 2009-08-26 | 3 | -0/+30 |
| | | | | | | | | this is an untested port of the r100 OQ code | ||||
* | | radeon: add r100 OQ support with kms. | Dave Airlie | 2009-08-26 | 4 | -0/+33 |
| | | | | | | | | | | | | This adds OQ support for the r100 chipsets, it requires KMS unless someone wants to make a kernel patch to add support for OQ regs. | ||||
* | | progs/glsl: call ValidateShaderProgram() | Brian Paul | 2009-08-25 | 1 | -0/+2 |
| | | |||||
* | | mesa: validate shader before drawing (for debugging, disabled) | Brian Paul | 2009-08-25 | 1 | -0/+10 |
| | | |||||
* | | glsl: update a texture/sampler comment | Brian Paul | 2009-08-25 | 1 | -1/+1 |
| | | |||||
* | | glsl: implement shader sampler validation | Brian Paul | 2009-08-25 | 2 | -11/+109 |
| | | | | | | | | | | | | Shader validation should fail if there are two samplers of different types which reference the same texture unit. For example, if a cubemap sampler and a 2D sampler both reference texture unit 0, that's invalid. | ||||
* | | mesa: use gl_texture_index type for gl_program::SamplerTargets | Brian Paul | 2009-08-25 | 1 | -1/+1 |
| | | |||||
* | | progs/util: added ValidateShaderProgram() to shaderutil.c | Brian Paul | 2009-08-25 | 2 | -0/+23 |
| | | |||||
* | | i965: add some texture unit/target assertions | Brian Paul | 2009-08-25 | 2 | -0/+10 |
| | | |||||
* | | mesa: print some program fields in binary too | Brian Paul | 2009-08-25 | 1 | -2/+29 |
| | | |||||
* | | r200: Add scissor to state atom list. | Pauli Nieminen | 2009-08-26 | 10 | -78/+119 |
| | | | | | | | | Scissors are jsut one of states that we have to emit so it should be in state list | ||||
* | | radeon/r600: Fix remaining warnings when building 64 bit binary. | Pauli Nieminen | 2009-08-25 | 4 | -6/+9 |
| | | |||||
* | | r200: Addd missing parameter to debug output. | Pauli Nieminen | 2009-08-25 | 1 | -1/+1 |
| | | |||||
* | | r200: Fix commit size prediction. | Pauli Nieminen | 2009-08-25 | 1 | -1/+4 |
| | | | | | | | | Scissor are emited for every primitive so fix that in prediction. |