aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Remove the CompileShader driver hook; it's just a no-op.Kenneth Graunke2011-03-173-12/+0
|
* i965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).Kenneth Graunke2011-03-164-11/+11
|
* i965: Rename BRW_DATAPORT_..._GEN6 messages to GEN6_... for consistency.Kenneth Graunke2011-03-162-9/+9
|
* i965: Rename BRW_SAMPLER_MESSAGE_..._GEN5 to GEN5_SAMPLER_MESSAGE.Kenneth Graunke2011-03-163-17/+17
| | | | We already have lots of GEN6_* defines; this seems more consistent.
* i965: Fix alpha testing when there is no color buffer in the FBO.Eric Anholt2011-03-153-0/+13
| | | | | We were alpha testing against an unwritten value, resulting in garbage. (part of) Bug #35073.
* i965: Do our lowering passes before the loop of optimization.Eric Anholt2011-03-151-10/+8
| | | | | | | | The optimization loop won't reinsert noise instructions or quadop vectors, so we were traversing the tree for nothing. Lowering vector indexing was in the loop after do_common_optimization() to avoid the work if it ended up that the index was actually constant, but that has been called already in the core.
* i965: Enable texture lookups whose return type is 'float'Kenneth Graunke2011-03-141-1/+4
| | | | | | | This enables the new shadow texture functions in GLSL 1.30. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
* i965: Fix tex_swizzle when depth mode is GL_REDChad Versace2011-03-141-1/+2
| | | | | | | Change swizzle from (x000) to (x001). Signed-off-by: Chad Versace <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* i965: Remove dead assignmentChad Versace2011-03-141-2/+0
| | | | | | | | The assignment on line 368, `tex_swizzles[i] = SWIZZLE_NOOP`, is rendered dead by the reassignment on line 392. Signed-off-by: Chad Versace <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* Revert "i965: Use the fixed function GLSL program instead of the ARB program."Eric Anholt2011-03-122-5/+5
| | | | | This reverts commit 81b34a4e3a7aec9cdf2781757408dc5e9eec79cb. There were regressions in the core change that this depends on.
* r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500Marek Olšák2011-03-121-1/+1
| | | | | | | | | | The docs say it can be set for direct texture lookups, but even that causes problems. This fixes the wireframe bug: https://bugs.freedesktop.org/show_bug.cgi?id=32688 NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r300/compiler: TEX instructions don't support negation on source argumentsMarek Olšák2011-03-121-3/+0
| | | | | | | This fixes piglit: - glsl-fs-texture2d-dependent-4 NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r300/compiler: Abs doesn't cancel Negate (in the conversion to native swizzles)Marek Olšák2011-03-122-9/+0
| | | | NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r300/compiler: fix translating the src negate bits in pair_translateMarek Olšák2011-03-121-3/+8
| | | | | | | | | | | (1, -_, ...) was converted to (-1, ...) because of the negation in the second component. Masking out the unused bits fixes this. Piglit: - glsl-fs-texture2d-branching NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r300g: implement fragment color clamping in the shaderMarek Olšák2011-03-122-0/+23
| | | | | This finishes the implementation of the fragment color clamp control for ARB_color_buffer_float. I don't wanna keep this stuff in a branch...
* r300/compiler: fix the saturate modifier when applied to TEX instructionsMarek Olšák2011-03-121-1/+5
| | | | This bug can only be triggered if the source texture is either signed or float.
* nouveau: Build fixAdam Jackson2011-03-111-0/+1
| | | | nouveau_vieux_dri.so.tmp: undefined reference to `_mesa_need_secondary_color'
* r600: Build fixAdam Jackson2011-03-112-0/+2
| | | | r600_dri.so.tmp: undefined reference to `_mesa_rgba_logicop_enabled'
* i965: Use the fixed function GLSL program instead of the ARB program.Eric Anholt2011-03-112-5/+5
| | | | | | This gets one more piece of the pipeline onto the new codegen backend. Once ARB_fragment_program can generate GLSL programs, we can nuke the old backend.
* i965: Use ffs() on a 32-bit int value instad of ffsll().Eric Anholt2011-03-111-1/+1
|
* mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul2011-03-1115-28/+36
| | | | and rename them.
* intel: Don't complain when getparam fails due to a missing param.Eric Anholt2011-03-091-1/+3
| | | | | This is an expected behavior when we're testing for the presence of new kernel features.
* i965: Pack the tracked state atoms into separate arrays for prepare/emit.Chris Wilson2011-03-092-42/+43
| | | | | | Improves performance of a hacked-up scissor-many (to reuse a small set of scissors instead of blowing out the cache, and then to run 100x more iterations so it actually took some time) by 3.6% +/- 1.2% (n=10)
* r300/compiler: remove unused variablesMarek Olšák2011-03-081-1/+1
|
* r300/compiler: fix equal and notequal shadow compare functionsMarek Olšák2011-03-081-18/+16
|
* r300/compiler: detect constants harderMarek Olšák2011-03-081-4/+8
|
* r300/compiler: improve the detection of constants for constant foldingMarek Olšák2011-03-081-0/+7
| | | | Now the expression V==0 generates one instruction instead of two.
* r300/compiler: saturate Z before the shadow comparisonMarek Olšák2011-03-081-37/+44
| | | | | | | This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31159 NOTE: This is a candidate for the 7.9 and 7.10 branches.
* i915: Only invert wpos when rendering to the system framebuffer.Henri Verbeet2011-03-071-7/+15
|
* i915: Derive the gl_fragment_program from i915_fragment_program.Henri Verbeet2011-03-071-6/+5
| | | | | | Instead of using the current gl_fragment_program. These aren't necessarily the same, for example when translate_program() is called by i915ValidateFragmentProgram().
* intel: check for miptree allocation failureChris Wilson2011-03-071-0/+2
| | | | Signed-off-by: Chris Wilson <[email protected]>
* intel: Add some defense against buffer allocation failure for subimage blitsChris Wilson2011-03-071-11/+11
| | | | Signed-off-by: Chris Wilson <[email protected]>
* intel: Add some defense against bo allocation failureChris Wilson2011-03-071-7/+11
| | | | Signed-off-by: Chris Wilson <[email protected]>
* glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB.Dave Airlie2011-03-061-0/+3
| | | | This realigns the name of the glx bit to align with the core mesa names.
* i965: Apply a workaround for the Ironlake "vertex flashing".Eric Anholt2011-03-041-1/+8
| | | | | | | | | | | | | | This is an awful hack and will hurt performance on Ironlake, but we're at a loss as to what's going wrong otherwise. This is the only common variable we've found that avoids the problem on 4 applications (CelShading, gnome-shell, Pill Popper, and my GLSL demo), while other variables we've tried appear to only be confounding. Neither the specifications nor the hardware team have been able to provide any enlightenment, despite much searching. https://bugs.freedesktop.org/show_bug.cgi?id=29172 Tested by: Chris Lord <[email protected]> (Pill Popper) Tested by: Ryan Lortie <[email protected]> (gnome-shell)
* i965: Fix extending VB packetsChris Wilson2011-03-041-2/+2
| | | | | | | | Computation of the delta of this array from the last had a silly little bug and ignored any initial delta==0 causing grief in Nexuiz and friends. Signed-off-by: Chris Wilson <[email protected]>
* i965: Handle URB_FENCE erratum for BroadwaterChris Wilson2011-03-041-0/+8
| | | | | | | | | | There is a silicon bug which causes unpredictable behaviour if the URB_FENCE command should cross a cache-line boundary. Pad before the command to avoid such occurrences. As this command only applies to gen4/5, do the fixup unconditionally as the specs do not actually state for which chip it was fixed (and the cost is negligible)... Signed-off-by: Chris Wilson <[email protected]>
* i965: Align index to type size and flush if the type changesChris Wilson2011-03-045-13/+22
| | | | Signed-off-by: Chris Wilson <[email protected]>
* intel: Add couple of missing gen6 commands to decodeChris Wilson2011-03-041-0/+2
| | | | Signed-off-by: Chris Wilson <[email protected]>
* i965: Prevent using a zero sized (or of unknown type) vertex arrayChris Wilson2011-03-041-5/+6
| | | | Signed-off-by: Chris Wilson <[email protected]>
* i965: SNB GT1 has only 32k urb and max 128 urb entries.Zou Nan hai2011-03-032-4/+19
| | | | Signed-off-by: Zou Nan hai <[email protected]>
* i965: Maxinum the usage of urb space on SNB.Zou Nan hai2011-03-021-10/+6
| | | | | | | | | SNB has 64k urb space, we only use piece of them. The more urb space we alloc, the more concurrent vs threads we can run. push the urb space usage to the limit. Signed-off-by: Zou Nan hai <[email protected]>
* intel: Support glCopyTexImage() from ARGB8888 to XRGB8888.Kenneth Graunke2011-03-011-2/+11
| | | | Nexuiz was hitting a software fallback.
* i965: Use negative relocation deltas to minimse vertex uploadsChris Wilson2011-03-014-8/+27
| | | | | | | | | | | | With relaxed relocation checking in the kernel, we can specify a negative delta (i.e. pointing outside of the target bo) in order to fake a range in a large buffer. We only then need to upload the elements used and adjust the buffer offset such that they correspond with the indices used in the DrawArrays. (Depends on libdrm 0209428b3918c4336018da9293cdcbf7f8fedfb6) Signed-off-by: Chris Wilson <[email protected]>
* i965: Undo 'continuation of vb packets'Chris Wilson2011-03-011-1/+1
| | | | | This breaks nexuiz for unknown reason; disable until a true fix can be found.
* i965: Fix uploading of shortened vertex packetsChris Wilson2011-03-011-12/+13
| | | | | | ... handle all cases and not just the interleaved upload. Signed-off-by: Chris Wilson <[email protected]>
* i965: Upload all vertices usedChris Wilson2011-03-012-31/+38
| | | | | | | | | | ... and take advantage of start_vertex_bias to trim to [min_index, max_index] where possible (i.e. when we need to upload all arrays). Fixes half_float_vertex(misc.fillmode.wireframe) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34595 Signed-off-by: Chris Wilson <[email protected]>
* Revert "i965/fs: Correctly set up gl_FragCoord.w on Sandybridge."Kenneth Graunke2011-03-011-1/+1
| | | | | This reverts commit 4a3b28113c3d23ba21bb8b8f5ebab7c567083a6d, as it caused a regression on Ironlake (bug #34646).
* i965: bump VS thread number to 60 on SNBZou Nan hai2011-03-012-2/+11
| | | | Signed-off-by: Zou Nan hai <[email protected]>
* mesa: move PBO-related functions into a new fileBrian Paul2011-02-285-0/+5
|