summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* glsl: asst. clean-ups in set_program_uniform()Brian Paul2009-08-261-14/+7
| | | | | Remove redunant type check for samplers (assert instead). Move some local vars. Update comments.
* progs/glsl: asst. changes in shtest.cBrian Paul2009-08-261-3/+16
|
* i965: added texture unit sanity checkBrian Paul2009-08-261-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 accessesBrian Paul2009-08-262-3/+18
| | | | We'll use this for debug/sanity checking.
* i965: clean up texture target switchesBrian Paul2009-08-261-2/+10
|
* mesa: var renaming, new assertionBrian Paul2009-08-261-4/+5
|
* mesa: additional instruction field size assertionsBrian Paul2009-08-261-0/+6
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-08-264-7/+24
|\
| * progs/glsl: add special Makefile rule for samplers_arrayBrian Paul2009-08-261-1/+3
| |
| * progs/glsl: change samplers.c to better test sampler/texture indexingBrian Paul2009-08-261-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 indexingBrian Paul2009-08-261-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 valueBrian Paul2009-08-241-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 fixesBrian Paul2009-08-241-0/+2
| |
| * xlib: fix single buffer window resize bugBrian Paul2009-08-241-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 exceptionBrian Paul2009-08-241-1/+1
| | | | | | | | Fixes bug 23489.
| * glsl: Silence gcc uninitialized variable warning.Vinson Lee2009-08-241-1/+1
| |
| * st/mesa: flush bitmap cache if Z value changesBrian Paul2009-08-211-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 generatorsBrian Paul2009-08-202-0/+8
| | | | | | | | Fall back to interpreter for now. This doesn't happen very often.
| * tgsi: handle SOA dependencies for MOV/SWZBrian Paul2009-08-202-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 fieldBrian Paul2009-08-202-0/+3
| | | | | | | | Users of the parser can make use of this.
* | progs/glsl: handle window resizes in texaaline.cBrian Paul2009-08-261-8/+12
| |
* | r600: fix two sided stencilAlex Deucher2009-08-261-14/+4
| |
* | r600: add missing radeon_cs_space_set_flush callAlex Deucher2009-08-261-0/+3
| | | | | | | | fixes crash in etracer reported by kdekorte on IRC
* | st/xorg: create basic vertex shaderZack Rusin2009-08-262-8/+37
| |
* | st/xorg: create basic fragment shaderZack Rusin2009-08-261-26/+10
| |
* | r600: make reloc_chunk size dynamicAlex Deucher2009-08-262-5/+10
| |
* | r600: fix memory leakAlex Deucher2009-08-261-1/+2
| |
* | r300: r4xx and rs4xx also have lte discard regsAlex Deucher2009-08-261-1/+4
| |
* | st/dri: Add some debug codeJakob Bornecrantz2009-08-261-2/+6
| |
* | st/xorg: Temporary fix for none stencil visualsJakob Bornecrantz2009-08-261-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 buffersJakob Bornecrantz2009-08-262-1/+13
| |
* | st/dri: Redo config generationJakob Bornecrantz2009-08-262-52/+87
| |
* | st/xorg: Add support for dirty framebuffer region reporting.Michel Dänzer2009-08-263-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 necessaryCooper Yuan2009-08-263-6/+19
| |
* | st/dri: make the GL_ARB_map_buffer_range entrypoints availableBen Skeggs2009-08-261-0/+2
| |
* | radeon/r100/r200: actually init the OQ support properlyDave Airlie2009-08-263-0/+3
| |
* | radeon/r200: OQ support for r200 in theory.Dave Airlie2009-08-263-0/+30
| | | | | | | | this is an untested port of the r100 OQ code
* | radeon: add r100 OQ support with kms.Dave Airlie2009-08-264-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 Paul2009-08-251-0/+2
| |
* | mesa: validate shader before drawing (for debugging, disabled)Brian Paul2009-08-251-0/+10
| |
* | glsl: update a texture/sampler commentBrian Paul2009-08-251-1/+1
| |
* | glsl: implement shader sampler validationBrian Paul2009-08-252-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::SamplerTargetsBrian Paul2009-08-251-1/+1
| |
* | progs/util: added ValidateShaderProgram() to shaderutil.cBrian Paul2009-08-252-0/+23
| |
* | i965: add some texture unit/target assertionsBrian Paul2009-08-252-0/+10
| |
* | mesa: print some program fields in binary tooBrian Paul2009-08-251-2/+29
| |
* | r200: Add scissor to state atom list.Pauli Nieminen2009-08-2610-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 Nieminen2009-08-254-6/+9
| |
* | r200: Addd missing parameter to debug output.Pauli Nieminen2009-08-251-1/+1
| |
* | r200: Fix commit size prediction.Pauli Nieminen2009-08-251-1/+4
| | | | | | | | Scissor are emited for every primitive so fix that in prediction.