summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
Commit message (Collapse)AuthorAgeFilesLines
* i965: Don't write mrf assignment for pointsize outputKristian Høgsberg2010-11-241-1/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=31894
* i915: Disallow alpha, red, RG, and sRGB as render targetsIan Romanick2010-11-231-1/+7
| | | | | | Fixes bugzilla #31832 NOTE: This is a candidate for the 7.9 branch.
* i965: Use the new embedded compare in SEL on gen6 for VS MIN and MAX opcodes.Eric Anholt2010-11-231-6/+24
| | | | Cuts the extra CMP instruction that used to precede SEL.
* i965: Don't upload line smooth params unless we're line smoothing.Eric Anholt2010-11-231-2/+3
|
* i965: Don't upload line stipple pattern unless we're stippling.Eric Anholt2010-11-231-0/+3
|
* i965: Don't upload polygon stipple unless required.Eric Anholt2010-11-231-1/+7
|
* i965: Move gen4 blend constant color to the gen4 blending file.Eric Anholt2010-11-232-34/+25
|
* r300/compiler: Don't allow presubtract sources to be remapped twiceTom Stellard2010-11-231-1/+8
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=31193 NOTE: This is a candidate for the 7.9 branch.
* r600c: fix VC flush on cedar and palmAlex Deucher2010-11-221-1/+5
|
* r600c: add Ontario Fusion APU supportAlex Deucher2010-11-225-1/+24
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r300/compiler: Add a more efficient version of rc_find_free_temporary()Tom Stellard2010-11-213-23/+110
|
* r300/compiler: Enable rename_reg pass for r500 cardsTom Stellard2010-11-212-79/+16
| | | | | In addition, the rename_reg pass has been rewritten to use rc_get_readers().
* r300/compiler: Use presubtract operations as much as possibleTom Stellard2010-11-218-67/+204
| | | | | Previously, presubtract operations where only being used by instructions with less than three source source registers.
* r300/compiler: Convert RGB to alpha in the schedulerTom Stellard2010-11-214-17/+320
|
* r300/compiler: Track readers through branches in rc_get_readers()Tom Stellard2010-11-214-38/+65
|
* r300/compiler: Handle BREAK and CONTINUE in rc_get_readers()Tom Stellard2010-11-211-0/+2
|
* r300/compiler: Add rc_get_readers()Tom Stellard2010-11-215-109/+246
|
* r300/compiler: Ignore alpha dest register when replicating the resultTom Stellard2010-11-211-1/+4
| | | | | | | | | | When the result of the alpha instruction is being replicated to the RGB destination register, we do not need to use alpha's destination register. This fixes an invalid "Too many hardware temporaries used" error in the case where a transcendent operation writes to a temporary register greater than max_temp_regs. NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Use zero as the register index for unused sourcesTom Stellard2010-11-212-0/+6
| | | | | | | | | This fixes an invalid "Too many hardware temporaries used" error in the case where a source reads from a temporary register with an index greater than max_temp_regs and then the source is marked as unused before the register allocation pass. NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Fix instruction scheduling within IF blocksTom Stellard2010-11-211-17/+20
| | | | | | | | | | | | | Reads of registers that where not written to within the same block were not being tracked. So in a situations like this: 0: IF 1: ADD t0, t1, t2 2: MOV t2, t1 Instruction 2 didn't know that instruction 1 read from t2, so in some cases instruction 2 was being scheduled before instruction 1. NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Fix register allocator's handling of loopsTom Stellard2010-11-211-10/+21
| | | | NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Make sure presubtract sources use supported swizzlesTom Stellard2010-11-212-6/+15
| | | | NOTE: This is a candidate for the 7.9 branch.
* r600: Remove unnecessary header.Vinson Lee2010-11-211-1/+0
|
* intel: Remove unnecessary header.Vinson Lee2010-11-201-1/+0
|
* r600: Remove unnecesary header.Vinson Lee2010-11-201-1/+0
|
* swrast: Remove unnecessary header.Vinson Lee2010-11-201-1/+0
|
* i965: Remove duplicate MRF writes in the FS backend.Eric Anholt2010-11-192-0/+152
| | | | | | | | | | This is quite common for multitexture sampling, and not only cuts down on the second and later set of MOVs, but typically also allows compute-to-MRF on the first set. No statistically siginficant performance difference in nexuiz (n=3), but it reduces instruction count in one of its shaders and seems like a good idea.
* i965: Improve compute-to-mrf.Eric Anholt2010-11-191-53/+49
| | | | | | | | | | | | We were skipping it if the instruction producing the value we were going to compute-to-mrf used its result reg as a source reg. This meant that the typical "write interpolated color to fragment color" or "texture from interpolated texcoord" shader didn't compute-to-MRF. Just don't check for the interference cases until after we've checked if this is the instruction we wanted to compute-to-MRF. Improves nexuiz high-settings performance on my laptop 0.48% +- 0.08% (n=3).
* i965: Recognize saturates and turn them into a saturated mov.Eric Anholt2010-11-192-0/+27
| | | | | | On pre-gen6, this turns 4 instructions into 1. We could still do better by folding the saturate into the instruction generating the value if nobody else uses it, but that should be a separate pass.
* i965: Fold constants into the second arg of BRW_SEL as well.Eric Anholt2010-11-191-0/+1
| | | | This hits a common case with min/max operations.
* i965: Remove extra \n at the end of every instruction in INTEL_DEBUG=wm.Eric Anholt2010-11-191-1/+0
|
* i965: Just use memset() to clear most members in FS constructors.Eric Anholt2010-11-191-18/+11
| | | | This should make it a lot harder to forget to zero things.
* i965: Fix compute_to_mrf to not move a MRF write up into another live range.Eric Anholt2010-11-191-7/+5
| | | | Fixes glsl-fs-copy-propagation-texcoords-1.
* mesa: Include C++ files in the makedepend of DRI drivers.Eric Anholt2010-11-191-2/+3
|
* glsl: Combine many instruction lowering passes into one.Kenneth Graunke2010-11-191-4/+6
| | | | | | | This should save on the overhead of tree-walking and provide a convenient place to add more instruction lowering in the future. Signed-off-by: Ian Romanick <[email protected]>
* glsl: Add ir_quadop_vector expressionIan Romanick2010-11-191-0/+1
| | | | | | | | | | The vector operator collects 2, 3, or 4 scalar components into a vector. Doing this has several advantages. First, it will make ud-chain tracking for components of vectors much easier. Second, a later optimization pass could collect scalars into vectors to allow generation of SWZ instructions (or similar as operands to other instructions on R200 and i915). It also enables an easy way to generate IR for SWZ instructions in the ARB_vertex_program assembler.
* glsl: Eliminate assumptions about size of ir_expression::operandsIan Romanick2010-11-191-0/+3
| | | | This may grow in the near future.
* glsl: Add ir_unop_sin_reduced and ir_unop_cos_reducedIan Romanick2010-11-191-0/+2
| | | | | | | | | | | | The operate just like ir_unop_sin and ir_unop_cos except that they expect their inputs to be limited to the range [-pi, pi]. Several GPUs require this limited range for their sine and cosine instructions, so having these as operations (along with a to-be-written lowering pass) helps this architectures. These new operations also matche the semantics of the GL_ARB_fragment_program SCS instruction. Having these as operations helps in generating GLSL IR directly from assembly fragment programs.
* dri/nouveau: Clean up magic numbers in get_rt_formatViktor Novotný2010-11-193-13/+13
| | | | | Signed-off-by: Viktor Novotný <[email protected]> Signed-off-by: Francisco Jerez <[email protected]>
* mesa: pass gl_format to _mesa_init_teximage_fields()Brian Paul2010-11-189-64/+78
| | | | | | | | | | | This should prevent the field going unset in the future. See bug http://bugs.freedesktop.org/show_bug.cgi?id=31544 for background. Also remove unneeded calls to clear_teximage_fields(). Finally, call _mesa_set_fetch_functions() from the _mesa_init_teximage_fields() function so callers have one less thing to worry about.
* i965: Eliminate dead code more aggressively.Eric Anholt2010-11-181-13/+4
| | | | | | | | | | If an instruction writes reg but nothing later uses it, then we don't need to bother doing it. Before, we were just killing code that was never read after it was ever written. This removes many interpolation instructions for attributes with only a few comopnents used. Improves nexuiz high-settings performance .46% +/- .12% (n=3) on my Ironlake.
* i965: Fail on loops on gen6 for now until we write the EU emit code for it.Eric Anholt2010-11-181-0/+4
|
* i965: Add dumping of the sampler default color.Eric Anholt2010-11-181-0/+11
|
* i965: Add state dumping for sampler state.Eric Anholt2010-11-181-2/+39
|
* i965: Shut up spurious gcc warning about GLSL_TYPE enums.Eric Anholt2010-11-181-0/+4
|
* glsl: Remove the ir_binop_cross opcode.Kenneth Graunke2010-11-172-29/+0
|
* r600c/evergreen: texture align is group_bytes just like 6xx/7xxAlex Deucher2010-11-172-14/+15
| | | | | | Default group bytes to 512 on evergreen. Don't query tiling config yet for evergreen, the current info returned is not adequate for evergreen (no way to get bank info).
* r600: Evergreen has two extra frac_bits for the sampler LOD state.Henri Verbeet2010-11-151-3/+3
| | | | Note: this is a candidate for the 7.9 branch.
* dri/nouveau: Kill a bunch of ternary operators.Francisco Jerez2010-11-157-24/+33
|
* dri/nouveau: Fix typo.Francisco Jerez2010-11-152-2/+1
|