summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-03-12r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500Marek Olšák
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.
2011-03-12r300/compiler: TEX instructions don't support negation on source argumentsMarek Olšák
This fixes piglit: - glsl-fs-texture2d-dependent-4 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300/compiler: Abs doesn't cancel Negate (in the conversion to native swizzles)Marek Olšák
NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300/compiler: fix translating the src negate bits in pair_translateMarek Olšák
(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.
2011-03-12st/dri: fix warning: ‘bind’ may be used uninitialized in this functionMarek Olšák
2011-03-12llvmpipe: fix warning: ‘t0’ may be used uninitialized in this functionMarek Olšák
2011-03-12r300g: implement fragment color clamping in the shaderMarek Olšák
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...
2011-03-12r300/compiler: fix the saturate modifier when applied to TEX instructionsMarek Olšák
This bug can only be triggered if the source texture is either signed or float.
2011-03-11r600g: revert unintentional commitAdam Jackson
2011-03-11nouveau: Build fixAdam Jackson
nouveau_vieux_dri.so.tmp: undefined reference to `_mesa_need_secondary_color'
2011-03-11r600: Build fixAdam Jackson
r600_dri.so.tmp: undefined reference to `_mesa_rgba_logicop_enabled'
2011-03-11st/python: Remove flags from flush function.Vinson Lee
2011-03-11st/python: Remove the geom_flags param from is_format_supported.Vinson Lee
2011-03-11st/python: Clean up fence_finish.Vinson Lee
2011-03-11scons: Move texenvprogram.c to ff_fragment_shader.cpp.Vinson Lee
2011-03-11i965: Use the fixed function GLSL program instead of the ARB program.Eric Anholt
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.
2011-03-11mesa: Track a computed _CurrentFragmentProgram for current gl_shader_programEric Anholt
This is like how we track FragmentProgram._Current for the computed ARB fragment program for fixed function texenv, but this gives direct access to the gl_shader_program for drivers to codegen from, skipping ARB_fp.
2011-03-11mesa: Convert fixed function fragment program generator to GLSL IR.Eric Anholt
This is a step towards providing a direct route for drivers accepting GLSL IR for codegen. Perhaps more importantly, it runs the fixed function fragment program through the GLSL IR optimization. Having seen how easy it is to make ugly fixed function texenv code that can do unnecessary work, this may improve real applicatinos.
2011-03-11mesa: Add gl_MESAFogParamsOptimized for our special pre-computed fog params.Eric Anholt
It would be nice if we handled optimized uniform math like this in some generic way, since people often end up doing uniform expressions in shaders, but for now keep this hard-coded like it was in the texenvprogram code.
2011-03-11mesa: Add a builtin uniform for the ATI_envmap_bumpmap rotation matrix.Eric Anholt
For fixed function fragment processing in GLSL IR, we want to be able to reference this state value. gl_* not explicitly permitted is reserved, so using this variable name internally shouldn't be any issue.
2011-03-11mesa: Move texenvprogram.c to ff_fragment_shader.cpp.Eric Anholt
This file is about to change to generating a shader program instead of a fragment program.
2011-03-11prog_cache: Add some support for shader_programs in prog_cache.Eric Anholt
This is used in the upcoming fixed function shader_program generation, and shader_program and ARB programs are together in this code until both fragment and vertex ff get converted.
2011-03-11mesa: Don't try to remove an internal shader_program from the hash.Eric Anholt
It fails on assertions if the key isn't actually present.
2011-03-11i965: Use ffs() on a 32-bit int value instad of ffsll().Eric Anholt
2011-03-11gallium: remove flags from the flush functionMarek Olšák
The drivers have been changed so that they behave as if all of the flags were set. This is already implicit in most hardware drivers and required for multiple contexts. Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag to decide whether flush_frontbuffer should be called. New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
2011-03-11gallium: remove the geom_flags param from is_format_supportedMarek Olšák
2011-03-11gallium: cleanup fence_signalled and fence_finishMarek Olšák
So that they don't have the driver-specific param and return type.
2011-03-11gallium: kill is_resource_referencedMarek Olšák
Only st/xorg used it and even incorrectly with regards to pipelined transfers.
2011-03-11swrastg: Add __DRI_TEX_BUFFER supportAdam Jackson
Without this, EXT_texture_from_pixmap is trivially broken. With it, it's merely subtly broken. Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-03-11mesa: test against MaxUniformComponents in check_resources()Brian Paul
Since we're compiling/linking GLSL shaders we should check against the shader uniform limits, not the legacy vertex/fragment program parameter limits which are usually lower.
2011-03-11mesa: move location of some geometry program limitsBrian Paul
The gl_program_constants struct is for limits that are applicable to any/all shader stages. Move the geometry shader-only fields into the gl_constants struct. Remove redundant MaxGeometryUniformComponents field too.
2011-03-11mesa: use check_resources() to check program against limitsBrian Paul
Without these checks we could create shaders with more samplers, constants than the driver could handle. Fail linking rather than dying later.
2011-03-11mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul
and rename them.
2011-03-11mesa: call FLUSH_VERTICES() before deleting shaders, buffers, query objectsBrian Paul
Need to flush rendering (or at least indicate that the rug might be getting pulled out from underneath us) when a shader, buffer object or query object is about to be deleted. Also, this helps to tell the VBO module to unmap its current vertex buffer.
2011-03-11vega: remove unused pipe varBrian Paul
2011-03-11svga: Propagate discard/unsynchronized flags to the host when doing texture ↵José Fonseca
DMAs.
2011-03-11util: Fix typo in u_upload_flush().José Fonseca
upload->offset is how much we used. upload->size is the whole buffer size.
2011-03-11r300g: fix alignement for NPOT values in hyperz setupNicolas Peninguy
With 3 pipes cards we need to align with NPOT values. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=32945 Signed-off-by: Nicolas Peninguy <nico@lostgeeks.org>
2011-03-11draw: remove unnecessary flushMarek Olšák
2011-03-11st/vega: remove unnecessary flushesMarek Olšák
I don't see a reason we need them.
2011-03-11st/mesa: remove unnecessary flushesMarek Olšák
The framebuffer cache flush should be implicit when calling set_framebuffer_state. There is no need to flush the command stream either.
2011-03-10Revert "gallium/svga: Only upload parts of vertexarrays that are actually used"Thomas Hellstrom
This reverts commit 6d4e337f3890105c7d8a2f132412c137d2570d25. The commit is incorrect. I'll rework it. Revert for now. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-10i915g: implement surface clear functions using hw-clearDaniel Vetter
Tested by temporarily using util_clear even when not using the blitter. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: make set_framebuffer_state more robustDaniel Vetter
u_blitter is lazy and doesn't fully clear it's stack-allocated fb. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: implement hw clearDaniel Vetter
Benefits: - spares us a relocation. - needed for zone rendering (if that ever happens). - just awesome. v2: Rename the debug option. Completely disabling the blitter is required for Y tiling to work, so this option will cover other code paths in the future. v3: Implement suggestions by Jakob Bornecrantz. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: blitter handles overlapping blitsDaniel Vetter
No need to assert. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: enable separate depth/stencil clearsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: streamline derived state updates of the driver pipelineDaniel Vetter
Flushing the batch/hw backend doesn't invalidate the derived state. So kill the unnecessary function calls and add an assert in emit_hardware_state for paranoia. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: don't validate a NULL vboDaniel Vetter
With the new clear code this is possible (if the app call glClear before drawing the first primitive). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10gallium/util: new polygon stipple utility helperBrian Paul
The polygon stipple fallback does not have to be implemented in the draw module (it doesn't need window coords, etc). Drivers can use this utility and avoid sw vertex fallbacks if pstipple is enabled. Note: this is WIP and not used by any driver yet.