summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Add a new ir_unop_round_even opcode for GLSL 1.30's roundEven.Kenneth Graunke2010-10-143-0/+4
| | | | Also, update ir_to_mesa's "1.30 is unsupported" case to "handle" it.
* r300g: clean up warning due to unknown cap.Dave Airlie2010-10-151-0/+1
|
* r600g: handle absolute modifier in shader translatorKeith Whitwell2010-10-151-5/+4
| | | | | | | This was being classed as unsupported in one place but used in others. Enabling it seems to work fine. Signed-off-by: Dave Airlie <[email protected]>
* r600g: emit hardware linewidthKeith Whitwell2010-10-151-1/+4
| | | | | | | Tested with demos/pixeltest - line rasterization doesn't seem to be set up for GL conventions yet, but at least width is respected now. Signed-off-by: Dave Airlie <[email protected]>
* r600/drm: fix segfaults in winsys create failure pathKeith Whitwell2010-10-151-3/+9
| | | | | | | Would try to destroy radeon->cman, radeon->kman both which were still NULL. Signed-off-by: Dave Airlie <[email protected]>
* i965: Clean up a warning in the old fragment backend.Kenneth Graunke2010-10-141-1/+5
| | | | Hopefully this code can just go away soon.
* i965: Enable the new FS backend on pre-gen6 as well.Eric Anholt2010-10-141-12/+1
| | | | | | | | | | | It is now to the point where we have no regressing piglit tests. It also fixes Yo Frankie! and Humus DynamicBranching, probably due to the piglit bias tests that work that didn't on the Mesa IR backend. As a downside, performance takes about a 5-10% performance hit at the moment (e.g. nexuiz 19.8fps -> 18.8fps), which I plan to resolve by reintroducing 16-wide fragment shaders where possible. It is a win, though, for fragment shaders using flow control.
* i965: Correctly emit the RNDZ instruction.Kenneth Graunke2010-10-142-3/+31
| | | | | | | | | | | | | | Simply using RNDU, RNDZ, or RNDE does not produce the desired result. Rather, the RND* instructions place a value in the destination register that may be 1 less than the correct answer. They can also set per-channel "increment bits" in a flag register, which, if set, mean dest needs to be incremented by 1. A second instruction - a predicated add - completes the job. Notably, RNDD always produces the correct answer in a single instruction. Fixes piglit test glsl-fs-trunc.
* i965: Use RNDZ for ir_unop_trunc in the new FS.Kenneth Graunke2010-10-141-1/+1
| | | | The existing code used RNDD, which rounds down, rather than toward zero.
* glsl: Refresh autogenerated file builtin_function.cpp.Kenneth Graunke2010-10-141-0/+60
|
* glsl: Add front-end support for the "trunc" built-in.Kenneth Graunke2010-10-143-0/+31
|
* i965: Use logical-not when emitting ir_unop_ceil.Kenneth Graunke2010-10-141-1/+1
| | | | Fixes piglit test glsl-fs-ceil.
* i965: Add peepholing of conditional mod generation from expressions.Eric Anholt2010-10-141-0/+88
| | | | | | | | | | This cuts usually 2 out of 3 instructions for flag reg generation (if statements, conditional assignment) by producing the conditional mod in the expression representing the boolean value. Fixes glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined (register allocation no longer fails for the conditional generation proliferation)
* i965: Add a function for handling the move of boolean values to flag regs.Eric Anholt2010-10-142-8/+19
| | | | | | This will be a place to peephole comparisions directly to the flag regs, and for now avoids using MOV with conditional mod on gen6, which is now illegal.
* Only install vtxfmt tables for OpenGLKristian Høgsberg2010-10-141-2/+4
| | | | | | GLES1 and GLES2 install their own exec pointers and don't need the Save table. Also, the SET_* macros use different indices for the different APIs so the offsets used in vtxfmt.c are actually wrong for the ES APIs.
* i965: Add a pass to the FS to split virtual GRFs to float channels.Eric Anholt2010-10-142-2/+116
| | | | Improves nexuiz performance 0.91% (+/- 0.54%, n=8)
* i965: Update the live interval when coalescing regs.Eric Anholt2010-10-141-0/+4
|
* i965: Set class_sizes[] for the aligned reg pair class.Eric Anholt2010-10-141-0/+1
| | | | So far, I've only seen this be a valgrind warning and not a real failure.
* llvmpipe: don't try to emit non-existent color outputsKeith Whitwell2010-10-141-8/+9
|
* Drop the "neutral" tnl moduleKristian Høgsberg2010-10-145-120/+9
| | | | | | | Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping.
* st/egl: Do not finish a fence that is NULL.Chia-I Wu2010-10-141-2/+4
| | | | i915g would dereference the NULL pointer.
* st/egl: Access _EGLConfig directly.Chia-I Wu2010-10-141-31/+26
| | | | | Drop the use of SET_CONFIG_ATTRIB. Fix the value of EGL_SAMPLE_BUFFERS along the way.
* egl: Access config attributes directly.Chia-I Wu2010-10-143-143/+76
| | | | Replace SET_CONFIG_ATTRIB/GET_CONFIG_ATTRIB by direct dereferences.
* egl: Use attribute names as the _EGLConfig member names.Chia-I Wu2010-10-142-69/+97
| | | | | This makes _EGLConfig more accessible and scales better when new attributes are added.
* r600g: select linear interpolate if tgsi input requests itDave Airlie2010-10-141-0/+3
|
* r600g: fixup typo in macro nameDave Airlie2010-10-141-1/+1
|
* r600g: fixup pos/face ena/address properlyDave Airlie2010-10-141-8/+17
|
* r600g: only pick centroid coordinate when asked.Dave Airlie2010-10-142-1/+4
| | | | TGSI tells us when to use this, its not hooked up from GLSL to MESA to TGSI yet though.
* Revert "i965: fallback lineloop on sandybridge for now"Zhenyu Wang2010-10-141-7/+0
| | | | This reverts commit 73dab75b4165f7d2214a68d4ba8e3cb7aab9b4ac.
* i965: Fix GS hang on SandybridgeZhenyu Wang2010-10-144-14/+46
| | | | | | Don't use r0 for FF_SYNC dest reg on Sandybridge, which would smash FFID field in GS payload, that cause later URB write fail. Also not use r0 in any URB write requiring allocate.
* i965: Add support for rescaling GL_TEXTURE_RECTANGLE coords to new FS.Eric Anholt2010-10-131-5/+40
|
* r600g: Fix texture sampling with swizzled coordsFredrik Höglund2010-10-141-1/+1
| | | | Signed-off-by: Dave Airlie <[email protected]>
* r600g: drop unused context membersDave Airlie2010-10-141-2/+0
|
* mesa: Clean up various 'unused parameter' warnings in shaderapiIan Romanick2010-10-131-6/+14
|
* mesa: Clean up two 'comparison between signed and unsigned' warningsIan Romanick2010-10-131-2/+2
|
* mesa: Refactor validation of shader targetsIan Romanick2010-10-131-10/+33
| | | | | | | | | Actually validate that the implementation supports the particular shader target as well. Previously if a driver only supported vertex shaders, for example, glCreateShaderObjectARB would gladly create a fragment shader. NOTE: this is a candidate for the 7.9 branch.
* mesa: Silence unused variable warningIan Romanick2010-10-131-0/+1
|
* linker: Reject shaders that have unresolved function callsIan Romanick2010-10-131-2/+6
| | | | | | | | | | This really amounts to just using the return value from link_function_calls. All the work was being done, but the result was being ignored. Fixes piglit test link-unresolved-funciton. NOTE: this is a candidate for the 7.9 branch.
* glsl: Initialize variable in ir_derefence_array::constant_expression_valueVinson Lee2010-10-131-1/+1
| | | | | | | Completely initialize data passed to ir_constant constructor. Fixes piglit glsl-mat-from-int-ctor-03 valgrind uninitialized value error on softpipe.
* llvmpipe: Generalize the x8z24 fast path to all depth formats.José Fonseca2010-10-131-111/+82
| | | | | | | | | | | | | Together with the previous commit, this generalize the benefits of d2cf757f44f4ee5554243f3279483a25886d9927 to all depth formats, in particular: - simpler float -> 24unorm conversion - avoid unsigned comparisons (not directly supported on SSE) by aligning to the least significant bit - avoid unecessary/repeated mask ANDing Verified with trivial/tri-z that the exact same assembly is produced for X8Z24.
* gallivm: More accurate float -> 24bit & 32bit unorm conversion.José Fonseca2010-10-131-40/+86
|
* gallivm: work-around trilinear mipmap filtering regression with LLVM 2.8Brian Paul2010-10-131-0/+20
| | | | The bug only happens on the AOS / fixed-pt path.
* gallivm: Remove unnecessary header.Vinson Lee2010-10-131-1/+0
|
* x11: fix breakage from gl_config::visualType removalBrian Paul2010-10-133-5/+6
|
* llvmpipe: Unbreak Z32_FLOAT.José Fonseca2010-10-133-64/+93
| | | | | | | | | | | | | Z32_FLOAT uses <4 x float> as intermediate/destination type, instead of <4 x i32>. The necessary bitcasts got removed with commit 5b7eb868fde98388d80601d8dea39e679828f42f Also use depth/stencil type and build contexts consistently, and make the depth pointer argument a ordinary <i8 *>, to catch this sort of issues in the future (and also to pave way for Z16 and Z32_FLOAT_S8_X24 support).
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-13789-5701/+5698
|
* Drop GLframebuffer typedef and just use struct gl_framebufferKristian Høgsberg2010-10-1354-128/+127
|
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-1399-190/+177
|
* gl: Remove unused GLcontextModes fieldsKristian Høgsberg2010-10-1310-55/+14
|
* Get rid of GL/internal/glcore.hKristian Høgsberg2010-10-1310-12/+314
| | | | | | | __GLcontextModes is always only used as an implementation internal struct at this point and we shouldn't install glcore.h anymore. Anything that needs __GLcontextModes should just include the struct in its headers files directly.