summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: s/varient/variantBrian Paul2010-12-1610-168/+168
|
* i965: Set the alternative floating point mode on gen6 VS and WM.Eric Anholt2010-12-163-0/+8
| | | | | | | This matches how we did the math instructions pre-gen6, though it applies to non-math as well. Fixes vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1)
* i915: Fix INTEL_DEBUG=wm segmentation faultShuang He2010-12-161-5/+5
| | | | The program should be disassembled after it's uploaded
* nvfx: fix fragprog word swapping on big-endian machinesBen Skeggs2010-12-161-2/+2
| | | | Signed-off-by: Ben Skeggs <[email protected]>
* gallium: properly check for src->dst blit compatibilitiesJerome Glisse2010-12-151-2/+2
| | | | | | Spotted by Christoph Bumiller & Jose Fonseca Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix pow(0, 0) evaluating to NaNFredrik Höglund2010-12-151-1/+1
| | | | | | | We have to use the non-IEEE compliant version of MUL here, since log2(0) is -inf, and 0 * -inf is NaN in IEEE arithmetic. candidates for 7.10 branch
* r600g: need to reference upload buffer as the might still live accross flushJerome Glisse2010-12-152-2/+4
| | | | | | | | | | Can't get away from referencing upload buffer as after flush a vertex buffer using the upload buffer might still be active. Likely need to simplify the pipe_refence a bit so we don't waste so much cpu time in it. candidates for 7.10 branch Signed-off-by: Jerome Glisse <[email protected]>
* st/mesa: fix incorrect prev pointer in destroy_program_variants()Brian Paul2010-12-141-9/+9
|
* softpipe: do texture swizzle during texture samplingBrian Paul2010-12-144-15/+114
| | | | | | Instead of when we read texture tiles. Now swizzling happens after the shadow depth compare step. This fixes the piglit glsl-fs-shadow2d* tests (except for proj+bias because of a GLSL bug).
* mesa: more program debug codeBrian Paul2010-12-141-0/+12
|
* tgsi: document texture opcodesBrian Paul2010-12-141-6/+58
|
* glsl: new glsl_strtod() wrapper to fix decimal point interpretationBrian Paul2010-12-148-229/+329
| | | | | | | | We always want to use '.' as the decimal point. See http://bugs.freedesktop.org/show_bug.cgi?id=24531 NOTE: this is a candidate for the 7.10 branch.
* gallivm: do texture swizzle after shadow compareBrian Paul2010-12-142-4/+2
| | | | | | | | | We need to swizzle after the shadow comparison so that the GL_DEPTH_MODE functionality is handled properly. This fixes all the piglit glsl-fs-shadow2d*.shader_test cases, except for glsl-fs-shadow2dproj-bias.shader_test which fails because of a bug in the GLSL compiler (fd.o 32395).
* st/mesa: rename the varient release functionsBrian Paul2010-12-143-12/+12
|
* r600g: fix segfault when translating vertex bufferJerome Glisse2010-12-144-21/+10
| | | | | | | | | Note the support for non float vertex draw likely regressed need to find what we want to do there. candidates for 7.10 branches Signed-off-by: Jerome Glisse <[email protected]>
* mesa: Clean up header file inclusion in prog_optimize.h.Vinson Lee2010-12-141-1/+2
|
* mesa: Clean up header file inclusion in prog_cache.h.Vinson Lee2010-12-141-1/+2
|
* mesa: Clean up header file inclusion in nvvertparse.h.Vinson Lee2010-12-141-1/+4
|
* i965: Add support for using the BLT ring on gen6.Eric Anholt2010-12-138-56/+72
|
* i965: Improve the hacks for ARB_fp scalar^scalar POW on gen6.Eric Anholt2010-12-131-36/+17
| | | | | | | | | | | | This is still awful, but my ability to care about reworking the old backend so we can just get a temporary value into a POW is awfully low since the new backend does this all sensibly. Fixes: fp1-LIT test 1 fp1-LIT test 3 (case x < 0) fp1-POW test (exponentiation) fp-lit-mask
* st/mesa: 80-columns wrapping, whitespace fixes in st_cb_bitmap.cBrian Paul2010-12-131-16/+30
|
* st/mesa: add geom program code in destroy_program_variants()Brian Paul2010-12-131-0/+21
|
* st/mesa: program struct commentsBrian Paul2010-12-131-1/+3
|
* st/mesa: use st_fragment_program() instead of castBrian Paul2010-12-131-2/+2
|
* st/mesa: rename variableBrian Paul2010-12-131-2/+2
|
* st/mesa: minor re-indentingBrian Paul2010-12-131-17/+16
|
* st/mesa: make st_delete_program() staticBrian Paul2010-12-132-4/+1
|
* st/mesa: add comments, fix formatting in st_cb_program.cBrian Paul2010-12-131-29/+31
|
* Squashed commit of the following (st-mesa-per-context-shaders branch):Brian Paul2010-12-1310-476/+894
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4f106f44a32eaddb6cf3fea6ba5ee9787bff609a Author: Brian Paul <[email protected]> Date: Mon Dec 13 14:06:08 2010 -0700 st/mesa: reorganize vertex program translation code Now it looks like the fragment and geometry program code. Also remove the serial number fields from programs. It was used to determine when new translations were needed. Now the variant key is used for that. And the st_program_string_notify() callback removes all variants when the program's code is changed. commit e12d6791c5e4bff60bb2e6c04414b1b4d1325f3e Author: Brian Paul <[email protected]> Date: Mon Dec 13 13:38:12 2010 -0700 st/mesa: implement geometry shader varients Only needed in order to support per-context gallium shaders. commit c5751c673644808ab069259a852f24c4c0e92b9d Author: Brian Paul <[email protected]> Date: Sun Dec 12 15:28:57 2010 -0700 st/mesa: restore glDraw/CopyPixels using new fragment program variants Clean up the logic for fragment programs for glDraw/CopyPixels. We now generate fragment program variants for glDraw/CopyPixels as needed which do texture sampling, pixel scale/bias, pixelmap lookups, etc. commit 7b0bb99bab6547f503a0176b5c0aef1482b02c97 Author: Brian Paul <[email protected]> Date: Fri Dec 10 17:03:23 2010 -0700 st/mesa: checkpoint: implement fragment program variants The fragment programs variants are per-context, as the vertex programs. NOTE: glDrawPixels is totally broken at this point. commit 2cc926183f957f8abac18d71276dd5bbd1f27be2 Author: Brian Paul <[email protected]> Date: Fri Dec 10 14:59:32 2010 -0700 st/mesa: make vertex shader variants per-context Gallium shaders are per-context but OpenGL shaders aren't. So we need to make a different variant for each context. During context tear-down we need to walk over all shaders/programs and free all variants for the context being destroyed.
* mesa, st/mesa: disable GL_ARB_geometry_shader4Brian Paul2010-12-132-1/+4
| | | | | | | The new GLSL compiler doesn't support geom shaders yet so disable the GL_ARB_geometry_shader4 extension. Undo this when geom shaders work again. NOTE: This is a candidate for the 7.10 branch.
* ir_to_mesa: Don't generate swizzles for record derefs of non-scalar/vectorsIan Romanick2010-12-131-1/+7
| | | | | | | | This is the same as what the array dereference handler does. Fixes piglit test glsl-link-struct-array (bugzilla #31648). NOTE: This is a candidate for the 7.9 and 7.10 branches.
* linker: Allow built-in arrays to have different sizes between shader stagesIan Romanick2010-12-131-8/+29
| | | | Fixes pitlit test glsl-link-varying-TexCoord (bugzilla #31650).
* i965: Fix gl_FragCoord.z setup on gen6.Eric Anholt2010-12-131-2/+7
| | | | Fixes glsl-bug-22603.
* i956: Fix the old FP path fragment position setup on gen6.Eric Anholt2010-12-131-18/+20
| | | | Fixes fp-arb-fragment-coord-conventions-none
* i965: Fix ARL to work on gen6.Eric Anholt2010-12-131-1/+17
| | | | | | | RNDD isn't one of the instructions that can do conversion from execution type to destination type. Fixes glsl-vs-arrays-3.
* intel: Include stdbool so we can stop using GLboolean when we want to.Eric Anholt2010-12-132-14/+12
| | | | | This requires shuffling the driconf XML macros around, since they use true and false tokens expecting them to not get expanded to anything.
* gallivm: store callbacks in a linked list rather than fixed size arrayBrian Paul2010-12-131-26/+28
| | | | Should fix http://bugs.freedesktop.org/show_bug.cgi?id=32308
* tnl: a better way to initialize the gl_program_machine memoryBrian Paul2010-12-131-15/+17
| | | | | | This improves commit ef3f7e61b314236cbb7ed2cf24d34c6f90d9cfca NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r600g: fix rendering with a vertex attrib having a zero strideAlex Deucher2010-12-121-4/+6
| | | | | | | | | The hardware supports zero stride just fine. This is a port of 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 from r300g. NOTE: This is a candidate for both the 7.9 and 7.10 branches. Signed-off-by: Alex Deucher <[email protected]>
* r300g: fixup rs690 tiling stride alignment calculations.Dave Airlie2010-12-133-31/+19
| | | | | | | | | | | | | The RS690 memory controller prefers things to be on a different boundary than the discrete GPUs, we had an attempt to fix this, but it still failed, this consolidates the stride calculation into one place and removes the really special case check. This fixes gnome-shell and 16 piglit tests on my rs690 system. NOTE: This is a candidate for both the 7.9 and 7.10 branches. Signed-off-by: Dave Airlie <[email protected]>
* egl: Do not unload drivers.Chia-I Wu2010-12-121-5/+11
| | | | | | When the driver is the last reference to libEGL.so, unloading it will cause libEGL.so to be unmapped and give problems. Disable the unloading for now. Still have to figure out the right timing to unload drivers.
* mapi: Fix a warning in !THREADS build.Chia-I Wu2010-12-121-1/+1
| | | | It should be u_thread_self, not _glthread_GetID.
* mesa: Clean up header file inclusion in nvfragparse.h.Vinson Lee2010-12-111-1/+4
|
* mesa: Clean up header file inclusion in ir_to_mesa.h.Vinson Lee2010-12-111-2/+5
|
* r300g: fix rendering with a vertex attrib having a zero strideMarek Olšák2010-12-111-7/+7
| | | | | | | | | The hardware apparently does support a zero stride, so let's use it. This fixes missing objects in ETQW, but might also fix a ton of other similar-looking bugs. NOTE: This is a candidate for both the 7.9 and 7.10 branches.
* tgsi: fix rbug compile errorMarek Olšák2010-12-111-1/+2
| | | | | | | ../mesa/src/gallium/auxiliary/tgsi/tgsi_parse.h:139: error: dereferencing pointer ‘tokens.25’ does break strict-aliasing rules Signed-off-by: Marek Olšák <[email protected]>
* r300/compiler: fix swizzle lowering with a presubtract source operandMarek Olšák2010-12-111-0/+1
| | | | | | | | | | | | If a source operand has a non-native swizzle (e.g. the KIL instruction cannot have a swizzle other than .xyzw), the lowering pass uses one or more MOV instructions to move the operand to an intermediate temporary with native swizzles. This commit fixes that the presubtract information was lost during the lowering. NOTE: This is a candidate for both the 7.9 and 7.10 branches.
* r300/compiler: fix LIT in VSMarek Olšák2010-12-111-1/+2
| | | | | | | | | | | This fixes broken rendering of trees in ETQW. The trees still disappear for an unknown reason when they are close. Broken since: 2ff9d4474bdf5f05852ad4963d0b597d20743678 r300/compiler: make lowering passes possibly use up to two less temps NOTE: This is a candidate for the 7.10 branch.
* glsl: Inherrit type of declared variable from initializer after processing ↵Ian Romanick2010-12-101-8/+17
| | | | | | | | | | | assignment do_assignment may apply implicit conversions to coerce the base type of initializer to the base type of the variable being declared. Fixes piglit test glsl-implicit-conversion-02 (bugzilla #32287). This probably also fixes bugzilla #32273. NOTE: This is a candidate for the 7.9 branch and the 7.10 branch.
* glsl: Minor clean-up in validate_assignmentIan Romanick2010-12-101-6/+3
| | | | | This code has been changed around a lot, and there were some temporary variables left around from previous versions.