aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Fix printf-like warning.Vinson Lee2010-09-022-2/+2
|
* mesa: Fix printf-like warnings.Vinson Lee2010-09-026-16/+16
|
* st/mesa: clamp gl_constants::MaxVarying against MAX_VARYINGBrian Paul2010-09-021-0/+1
| | | | | Don't try to use more generic varying vars than core Mesa supports. Fixes fd.o bug 29959.
* mesa: fix code generation for ir_unop_sqrtBrian Paul2010-09-021-2/+3
| | | | | | | The CMP instruction needed to be flipped to properly handle operand==0. Fixes fd.o bug 29923.
* mesa: fix some printf warnings with castsBrian Paul2010-09-024-10/+10
|
* ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to a temp.Eric Anholt2010-09-011-345/+291
| | | | | | | | | | | | | | | | | | Like the constant handling and the handling of other uniforms, we add the whole thing to the Parameters, avoiding messy, incomplete logic for adding just the elements of a builting uniform that get used. This means that a driver that relies only on ParameterValues[] for its parameters will have an increased parameter load, but drivers generally don't do that (since they have other params they need to handle, too). Fixes glsl-fs-statevar-call (testcase for Ember). Bug #29687. Regresses glsl-vs-array-04 on 965. Thanks to a slight change in register allocation, this test of undefined behavior now wraps around the register space and unexpectedly reads the constant value it's trying to compare to. The test should probably not look at the resulting color, since behavior is undefined.
* ir_to_mesa: Add a little helper for emitting link failure messages.Eric Anholt2010-09-011-24/+22
|
* mesa: Fix many printf-like warnings.Eric Anholt2010-09-014-12/+13
| | | | | | | | Most of these are just typecasting to long to match the arg type. I don't really care too much about getting a GLsizei or whatever appropriate type in. However, there were a number of real bugs, like missing arguments or passing floats to integer format specifiers. My favorite: printflike("%s, argument") is missing an argument.
* mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2010-09-012-5/+10
|
* mesa/st: remove check for buffer/elements = 0Dave Airlie2010-09-021-3/+0
| | | | | | shown by the glsl-vs-point-size failing on r600g. the test passes on softpipe and I get a full piglit test run completing on r600g.
* mesa: fix out of bounds memory read in mipmap gen codeBrian Paul2010-09-011-5/+12
| | | | | | | Out of bounds reads could happen for reducing WxH to WxH/2 or WxH to W/2xH. Fixes fd.o bug 29918.
* mesa: more prog_execute.c debug codeBrian Paul2010-09-011-0/+7
|
* i965: DP2 produces a scalar result like DP3, DP4, etc.Eric Anholt2010-09-011-0/+1
| | | | Fixes glsl-fs-dot-vec2-2.
* mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic2010-09-011-0/+2
| | | | | | See fd.o bug 29909. Signed-off-by: Brian Paul <[email protected]>
* r600: cube mipmap levels are aligned to 8 faces only starting from r7xxAndre Maasikas2010-09-011-3/+3
|
* ir_to_mesa: When emitting a pixel kill, flag that we did so.Eric Anholt2010-08-311-0/+3
| | | | | | | Both i965 and swrast rely on UsesKill to determine whether to do early depth writes. Fixes glsl-fs-discard-02. Bug #29835.
* ir_to_mesa: Sort the uniform list we're adding to Parameters[] order.Eric Anholt2010-08-311-5/+41
| | | | | | | | | 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
* ir_to_mesa: Fix struct/class confusionnobled2010-08-311-1/+1
|
* ir_to_mesa: Set up our instruction nodes with zeroed data.Eric Anholt2010-08-311-0/+12
| | | | | | cond_update wasn't being set by emit_op3, leading to valgrind complaints, and failures in several piglit tests when built with clang.
* ir_to_mesa: use RSQ+MUL instead of RSQ+RCP for SQRTMarek Olšák2010-08-311-1/+2
| | | | | | | | sqrt(x) = 1/rsq(x) = x*rsq(x) This optimization already was in the old GLSL compiler. Acked on irc by Eric Anholt.
* i965: fix depth test on sandybridgeZhenyu Wang2010-08-313-3/+3
| | | | | | | | | 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]>
* Add talloc to osmesa library dependenciesJon TURNEY2010-08-301-2/+2
| | | | | | also link osmesa with C++ standard libraries, as it now contains C++ code Signed-off-by: Jon TURNEY <[email protected]>
* Fix inverted version checks in check_extra.Kenneth Graunke2010-08-301-6/+12
| | | | | | | | | | 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]>
* i965: Clear the cached constant buffer entry in the VS at control flow.Eric Anholt2010-08-301-1/+21
| | | | | Fixes the 7 regressions with constant buffers forced on with piglit -t glsl (glsl-vs-if-*).
* i965: Align the number of payload regs to 2 again in 16-wide mode.Eric Anholt2010-08-301-1/+1
| | | | | Fixes a regression in point-line-no-cull and glean/paths tests since 501c9dc62774a73c080d500a1eab773b0da9577e.
* i965: Apply the rest of the old-libdrm guard patch.Cedric Vivier2010-08-301-0/+13
| | | | Bug #29855
* i965: Add support for loops to the new FS backend.Eric Anholt2010-08-301-4/+82
| | | | | | | | 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.
* i965: Make brw_CONT and brw_BREAK take the pop count.Eric Anholt2010-08-304-14/+10
| | | | We always need to set it, so pass it in.
* i965: Add "discard" support to the new FS backend.Eric Anholt2010-08-301-1/+19
| | | | Fixes 3 testcases related to discard.
* i965: Fix the new implementation of ir_unop_sign to match brw_wm_emit.cEric Anholt2010-08-301-5/+8
| | | | | | | | | 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.
* i965: Add support for texturing with bias to i965 FS backend.Eric Anholt2010-08-302-17/+60
| | | | | Fixes 5 piglit tests for bias. Note that LOD is a 1.30 feature and not yet supported.
* mesa: Return after assertion failure.José Fonseca2010-08-301-1/+1
| | | | | | Addresses the warnings: warning: ‘target’ may be used uninitialized in this function warning: ‘target_string’ may be used uninitialized in this function
* mesa: Fix _mesa_lookup_parameter_constant's return value.José Fonseca2010-08-301-2/+4
| | | | | | | | | 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.
* st/mesa: set the MaxVarying GLSL constantMarek Olšák2010-08-301-0/+7
|
* evergreen : fix shader const allocation and instruction bugs.Richard Li2010-08-296-20/+48
|
* ir_to_mesa: Initialize variable in ir_to_mesa_visitor::visit.Vinson Lee2010-08-291-1/+1
| | | | | Fixes piglit glsl-fs-loop valgrind uninitialized value error on softpipe and llvmpipe.
* i965: Add initial support for texturing to the new FS backend.Eric Anholt2010-08-281-15/+128
| | | | Fixes 11 piglit tests.
* i965: Add disasm for gen5 sampler messages.Eric Anholt2010-08-281-6/+19
|
* i965: Move libdrm/C++ hack introduced in fa2deb3d to intel_context.hCedric Vivier2010-08-281-5/+0
| | | | | | | Fixes build on Linux/GCC 4.4 as libdrm includes are also used by other brw_fs_*.cpp files. Bug #29855
* st/mesa: Include missing header in st_mesa_to_tgsi.c.Vinson Lee2010-08-281-1/+2
| | | | Include p_screen.h for complete type to pipe_screen.
* i965: Set the pop count on BRK/CONT inside of an if statement in the FS.Eric Anholt2010-08-271-4/+11
| | | | | | | This is the same as 8de8c97275e9555183a7e8f2238143657bbe60b2 for the VS, and fixes glsl-fs-if-nested-loop and the mandelbrot demo. Bug #29498
* dri: Get prototype for _mesa_destroy_compiler().Eric Anholt2010-08-271-0/+1
| | | | Bug #29665.
* i965: Don't strip negate/abs flags when assigning uniform locations.Eric Anholt2010-08-271-5/+5
| | | | Fixes glsl-algebraic-sub-zero-4.
* i965: Add missing handling for BRW_OPCODE_SEL.Eric Anholt2010-08-271-0/+4
| | | | Fixes 4 piglit tests about min, max, and clamp.
* i965: Mask out higher bits of the result of BRW_CMP producing a boolean.Eric Anholt2010-08-271-0/+6
| | | | | 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.
* i965: Fix the types of immediate integer values.Eric Anholt2010-08-271-2/+2
| | | | When we're trying to do integer ops, handing a float in doesn't help.
* i965: Add translation for RNDD and RNDZ.Eric Anholt2010-08-271-0/+7
| | | | | | Fixes: glsl-fs-any. glsl1-integer division with uniform var
* i965: Add support for ir_binop_mod using do_mod_to_fract.Eric Anholt2010-08-271-0/+4
| | | | Fixes glsl-fs-mod.
* mesa: move null ptr check (fdo bug 29843)Brian Paul2010-08-271-2/+2
|
* mesa: Use the format info to identify packed depth/stencil formats.Nick Bowler2010-08-271-6/+2
| | | | | | | | | | | 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]>