summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* 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.
* 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
|
* 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.
* i965: Put common info on converting MESA_FORMAT to BRW_FORMAT in a table.Eric Anholt2010-12-101-126/+42
| | | | | | There are exceptions to the table for depth texturing or rendering to not-quite-supported formats thanks to the non-orthogonal component selection for surface formats, but it's still a lot simpler.
* intel: Just use ChooseTextureFormat for renderbuffer format choice.Eric Anholt2010-12-101-52/+9
| | | | One less place to forget to put your new MESA_FORMAT support in.
* intel: Add a couple of helper functions to reduce rb code duplication.Eric Anholt2010-12-105-138/+78
|
* intel: Add spans code for the ARB_texture_rg support.Eric Anholt2010-12-102-0/+154
| | | | | This starts spantmp2.h down the path of using MESA_FORMAT_* for specifying the format instead of the crazy GL format/type combo.
* mesa: Don't assertion fail for _mesa_get_format_name(MESA_FORMAT_NONE)Eric Anholt2010-12-101-1/+0
|
* tnl: Initialize gl_program_machine memory in run_vp.Vinson Lee2010-12-101-1/+1
| | | | | | | | Fixes piglit valgrind glsl-array-bounds-04 failure (FDO bug 29946). NOTE: This is a candidate for the 7.10 branch. This is a candidate for the 7.9 branch.
* vbo: Avoid the copy to current in dlists if not required.Mathias Fröhlich2010-12-103-25/+36
| | | | | | | | The current state is allowed to be undefined past DrawElements et al. Consequently omit that copying at least in the display list code. This pays us some percents performance. Signed-off-by: Brian Paul <[email protected]>
* mesa/meta: fix broken assertion, rename stack depth varBrian Paul2010-12-101-5/+7
| | | | | | | assert(current_save_state < MAX_META_OPS_DEPTH) did not compile. Rename current_save_state to SaveStackDepth to be more consistent with the style of the other fields.
* mesa: Clean up header file inclusion in arbprogparse.h.Vinson Lee2010-12-091-1/+5
|
* i965: support for two-sided lighting on SandybridgeXiang, Haihao2010-12-105-6/+72
| | | | | | VS places color attributes together so that SF unit can fetch the right attribute according to object orientation. This fixes light issue in mesa demo geartrain, projtex.
* meta: allow nested meta operationsXiang, Haihao2010-12-101-4/+10
| | | | | | _mesa_meta_CopyPixels results in nested meta operations on Sandybridge. Previoulsy the second meta operation overrides all states saved by the first meta function.
* i965: Add support for gen6 reladdr VS constant loading.Eric Anholt2010-12-092-11/+17
|
* i965: Add support for gen6 constant-index constant loading.Eric Anholt2010-12-092-3/+9
|
* intel: Set the swizzling for depth textures using the GL_RED depth mode.Eric Anholt2010-12-092-0/+8
| | | | Fixes depth-tex-modes-rg.
* intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.Eric Anholt2010-12-091-0/+2
| | | | Fixes texture-rg.
* i965: Silence uninitialized variable warning.Vinson Lee2010-12-091-0/+5
| | | | | | Fixes this GCC warning. brw_fs.cpp: In function 'brw_reg brw_reg_from_fs_reg(fs_reg*)': brw_fs.cpp:3255: warning: 'brw_reg' may be used uninitialized in this function
* i965: remove unused variable since brw_wm_glsl.c removal.Eric Anholt2010-12-092-2/+1
|
* i965: Set render_cache_read_write surface state bit on gen6 constant surfs.Eric Anholt2010-12-092-0/+9
| | | | This is said to be required in the spec, even when you aren't doing writes.
* i965: Set up the correct texture border color state struct for Ironlake.Eric Anholt2010-12-092-5/+45
| | | | | This doesn't actually fix border color on Ironlake, but it appears to be a requirement, and gen6 needs it too.
* i965: Clean up VS constant buffer location setup.Eric Anholt2010-12-091-15/+3
|
* i965: Fix VS constants regression pre-gen6.Eric Anholt2010-12-091-1/+1
| | | | Last minute change for gen6 with 0 used params dropped the multiply.
* mesa: allow GLfixed arrays for OpenGL ES 2.0Shuang He2010-12-091-2/+2
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: Fix glTexCoordPointer with type GL_FIXED.Chia-I Wu2010-12-091-1/+2
| | | | GL_FIXED is also a legal type for glTexCoordPointer.
* mesa: Fix GL_FIXED arrays.Chia-I Wu2010-12-091-0/+2
| | | | It is broken since 433e5e6defc85d8b1d6262aff990e3f5a8b37027.
* i965: Drop push-mode reladdr constant loading and always use constant_map.Eric Anholt2010-12-084-93/+96
| | | | | | | | This eases the gen6 implementation, which can only handle up to 32 registers of constants, while likely not penalizing real apps using reladdr since all of those I've seen also end up hitting the pull constant buffer. On gen6, the constant map means that simple NV VPs fit under the 32-reg limit and now succeed. Fixes around 10 testcases.