| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
See fd.o bug 29909.
Signed-off-by: Brian Paul <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
Both i965 and swrast rely on UsesKill to determine whether to do early
depth writes. Fixes glsl-fs-discard-02.
Bug #29835.
|
|
|
|
|
|
|
|
|
| |
Fixes glsl-uniform-linking-1 and failure to link a shader in Unigine.
An alternative here would be to just ditch using _mesa_add_parameter
and build the initial params list on our own, but that would require
two walks of the list as well.
Bug #29822
|
| |
|
|
|
|
|
|
| |
cond_update wasn't being set by emit_op3, leading to valgrind
complaints, and failures in several piglit tests when built with
clang.
|
|
|
|
|
|
|
|
| |
sqrt(x) = 1/rsq(x) = x*rsq(x)
This optimization already was in the old GLSL compiler.
Acked on irc by Eric Anholt.
|
|
|
|
|
|
|
|
|
| |
This includes several corrections for fixing depth test on sandybridge.
Fix wrong bits definition in depth stencil state. Fix wrong order of
state buffer offset in 3DSTATE_CC_STATE_POINTERS command. Correctly use
buffer width parameter in depth buffer setting.
Signed-off-by: Zhenyu Wang <[email protected]>
|
|
|
|
|
|
| |
also link osmesa with C++ standard libraries, as it now contains C++ code
Signed-off-by: Jon TURNEY <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Previously, if an attribute was enabled by either a specific GL version
or an extension, the check would require -both- to be enabled. This bug
was not discovered earlier because version checks are currently only ever
used on their own.
Signed-off-by: Kristian Høgsberg <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
|
|
|
|
|
| |
Fixes the 7 regressions with constant buffers forced on with piglit -t
glsl (glsl-vs-if-*).
|
|
|
|
|
| |
Fixes a regression in point-line-no-cull and glean/paths tests since
501c9dc62774a73c080d500a1eab773b0da9577e.
|
|
|
|
| |
Bug #29855
|
|
|
|
|
|
|
|
| |
This includes a handy little safety check to prevent the loop from
going "too long", as permitted by the spec. I haven't gone out of my
way to test it, though…
Fixes 20 more piglit tests.
|
|
|
|
| |
We always need to set it, so pass it in.
|
|
|
|
| |
Fixes 3 testcases related to discard.
|
|
|
|
|
|
|
|
|
| |
Like the comparison operations, this suffered from CMP only setting
the low bit. Doing the AND instructions would be the same instruction
count as the more obvious conditional moves, so do cond moves.
Fixes glsl-fs-sign and 6 other cases, like trig functions that use
sign() internally.
|
|
|
|
|
| |
Fixes 5 piglit tests for bias. Note that LOD is a 1.30 feature and
not yet supported.
|
|
|
|
|
|
| |
Addresses the warnings:
warning: ‘target’ may be used uninitialized in this function
warning: ‘target_string’ may be used uninitialized in this function
|
|
|
|
|
|
|
|
|
| |
Fixes gcc warning
In function ‘_mesa_add_unnamed_constant’:
warning: ‘pos’ may be used uninitialized in this function
but also what appears to be a bug.
|
| |
|
| |
|
|
|
|
|
| |
Fixes piglit glsl-fs-loop valgrind uninitialized value error on softpipe
and llvmpipe.
|
|
|
|
| |
Fixes 11 piglit tests.
|
| |
|
|
|
|
|
|
|
| |
Fixes build on Linux/GCC 4.4 as libdrm includes are also used by other
brw_fs_*.cpp files.
Bug #29855
|
|
|
|
| |
Include p_screen.h for complete type to pipe_screen.
|
|
|
|
|
|
|
| |
This is the same as 8de8c97275e9555183a7e8f2238143657bbe60b2 for the
VS, and fixes glsl-fs-if-nested-loop and the mandelbrot demo.
Bug #29498
|
|
|
|
| |
Bug #29665.
|
|
|
|
| |
Fixes glsl-algebraic-sub-zero-4.
|
|
|
|
| |
Fixes 4 piglit tests about min, max, and clamp.
|
|
|
|
|
| |
When it says it sets the LSB, that's not just a hint as to where the
result goes. Only the LSB is modified. Fixes 20 piglit cases.
|
|
|
|
| |
When we're trying to do integer ops, handing a float in doesn't help.
|
|
|
|
|
|
| |
Fixes:
glsl-fs-any.
glsl1-integer division with uniform var
|
|
|
|
| |
Fixes glsl-fs-mod.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Due to a misunderstanding of the Z24_X8 and X8_Z24 formats, the earlier
patch created depth/stencil wrappers for them. This broke swrast.
Use the format info instead, which only identifies Z24_S8 and S8_Z24 as
packed depth/stencil. It also has the advantage of being nicer code.
Signed-off-by: Nick Bowler <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
|
|
|
|
|
|
|
|
| |
This releases a bunch of memory that was showing up as leaks with
valgrind.
If atexit() isn't widely supported we may need to add some #ifdef
tests around the call.
|
|
|
|
| |
Fixes glsl-fs-neg and 5 other tests.
|
|
|
|
| |
10 more piglit tests pass.
|
|
|
|
| |
20 more piglit tests pass.
|
| |
|
|
|
|
|
|
| |
glsl-algebraic-rcp-rsq managed to use 33 registers, and we claimed to
only use 32, so the write to g32 would go stomping over the precious
g0 of some other thread.
|
|
|
|
|
|
|
| |
This wouldn't catch the last failure fixed in them, because we don't
validate assignments well (due to the fact that we've got a pretty
glaring inconsistency in how we handle assignment writemasking), but
it could catch other failure we may produce.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
We weren't smearing a component of a split RHS out to reach an unsplit
LHS's writemask, so gl_FragColor (always unsplit) would often get
uninitialized values.
Fixes: glsl-algebraic-add-add-1 (and probably many others).
|
| |
|
| |
|
| |
|