summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-09-01ir_to_mesa: Add a little helper for emitting link failure messages.Eric Anholt
2010-09-01mesa: Fix many printf-like warnings.Eric Anholt
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.
2010-09-01mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt
2010-09-02mesa/st: remove check for buffer/elements = 0Dave Airlie
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.
2010-09-01r600g: silence compiler warningJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01r600g: refix db/cb stateJerome Glisse
Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01mesa: fix out of bounds memory read in mipmap gen codeBrian Paul
Out of bounds reads could happen for reducing WxH to WxH/2 or WxH to W/2xH. Fixes fd.o bug 29918.
2010-09-01mesa: more prog_execute.c debug codeBrian Paul
2010-09-01glsl: Add forgotten implementations of equal/notEqual on bvecs.Kenneth Graunke
2010-09-01r600g: fix up default state differences between r6xx and r7xxAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-09-01st/glx: re-order destruction of buffers, visualsBrian Paul
Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919.
2010-09-01i965: DP2 produces a scalar result like DP3, DP4, etc.Eric Anholt
Fixes glsl-fs-dot-vec2-2.
2010-09-01glsl2: Perform algebraic simplifications on logical binary operatorsIan Romanick
Reduces glsl-vs-all-01 from 42 Mesa IR instructions (including the END) to 17.
2010-09-01glsl2: Allow ir_constant::zero to create boolean constantsIan Romanick
2010-09-01r600g: avoid dynamic allocation of statesJerome Glisse
Make state statically allocated, this kills a bunch of code and avoid intensive use of malloc/free. There is still a lot of useless duplicate function wrapping that can be kill. This doesn't improve yet performance, needs to avoid memcpy states in radeon_ctx_set_draw and to avoid rebuilding vs_resources, dsa, scissor, cb_cntl, ... states at each draw command. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01Revert "Revert "r600g: precompute some of the hw state""Jerome Glisse
This reverts commit 1fa7245c348cb7aced81f1672140f64cb6450e2f. Conflicts: src/gallium/drivers/r600/r600_state.c
2010-09-01nouveau/nvfx: Remove enforcement of bit depth being same as front bufferPatrice Mandin
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-09-01nv50: fix XPD, was negatedChristoph Bumiller
2010-09-01nv50: must join SELECT inputs before MOV inputsChristoph Bumiller
2010-09-01nv50: make use of TGSI immediate typeChristoph Bumiller
2010-09-01nv50: re-add proper TEXBIAS sequenceChristoph Bumiller
2010-09-01nv50: make FrontFacing -1 or +1Christoph Bumiller
2010-09-01nv50: SSGChristoph Bumiller
2010-09-01nv50: DPHBen Skeggs
2010-09-01nv50: DSTBen Skeggs
2010-09-01nv50: attempt at making more complicated loops workChristoph Bumiller
Nested loops, and loops with multiple exits (BREAK, CONT).
2010-09-01nv50: turn off verbose debug output by defaultChristoph Bumiller
2010-09-01nv50: set the FragDepth output indexChristoph Bumiller
2010-09-01nv50: handle TEXTURE_SWIZZLE and GEOMETRY_SHADER4 capsChristoph Bumiller
GP support will probably be re-added soon.
2010-09-01mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic
See fd.o bug 29909. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01glsl2: Disallow function declarations within function definitions in GLSL 1.20Ian Romanick
The GLSL 1.20 spec specifically disallows this, but it was allowed in GLSL 1.10. Fixes piglit test cases local-function-0[13].frag and bugzilla #29921.
2010-09-01r600: cube mipmap levels are aligned to 8 faces only starting from r7xxAndre Maasikas
2010-09-01r600g: correct cb/zb offset emits.Dave Airlie
This fixes fbo-3d and fbo-cubemap
2010-09-01Revert "r600g: precompute some of the hw state"Dave Airlie
This reverts commit de0b76cab22caa9fc7260f80acb8f151ccced6c5, its pre-computes the texture state wrong, you can't just use an array of levels, since you can have FBOs to depth texture slices inside a level as well it would get really messy quickly. Probably need to split commits like this up into pieces for each piece of state, so we can revert bits easier in case of regressions. This also break 5 piglit tests, and valgrind starts to warn about invalid read/writes after this.
2010-09-01r600g: fix typo causing segfault.Dave Airlie
fixes warning that r600_blit.c: In function ‘r600_resource_copy_region’: r600_blit.c:136: warning: passing argument 1 of ‘util_resource_copy_region’ from incompatible pointer type and also 7 more piglit tests.
2010-09-01r600g: fix glean texCube and shadows.Dave Airlie
add cube and shadow support to the texture code.
2010-08-31gallivm: fix bug in nested conditionalsBrian Paul
This, plus the previous commit fix fd.o bug 29806.
2010-08-31glsl2: fix bug in atan(y, x) functionBrian Paul
When x==0, the result was wrong. Fixes piglit glsl-fs-atan-1.shader_test
2010-08-31ir_to_mesa: When emitting a pixel kill, flag that we did so.Eric Anholt
Both i965 and swrast rely on UsesKill to determine whether to do early depth writes. Fixes glsl-fs-discard-02. Bug #29835.
2010-08-31llvmpipe: slightly simplify build_maskKeith Whitwell
2010-08-31llvmpipe: combine linear mask calculationKeith Whitwell
2010-08-31llvmpipe: intrinsics versions of build_mask functionsKeith Whitwell
2010-08-31glsl2: Write vector constructor constants in a single assignmentIan Romanick
Make two passes over the constructor parameters. Write all of the constants in a single write, then write the non-constants one at a time. This causes the fragment shader varying float g; void main() { gl_FragColor = vec4(0.0, g, 0.0, 1.0); } to generate (function main (signature void (parameters ) ( (declare (temporary ) vec4 vec_ctor@0x8580058) (assign (constant bool (1)) (xzw) (var_ref vec_ctor@0x8580058) (constant vec4 (0.000000 0.000000 0.000000 1.000000)) ) (assign (constant bool (1)) (y) (var_ref vec_ctor@0x8580058) (swiz xxxx (var_ref g@0x8580218) )) (assign (constant bool (1)) (xyzw) (var_ref gl_FragColor@0x84d32a0) (var_ref vec_ctor@0x8580058) ) )) ) instead of (function main (signature void (parameters ) ( (declare (temporary ) vec4 vec_ctor@0x8580058) (assign (constant bool (1)) (x) (var_ref vec_ctor@0x8580058) (constant vec4 (0.000000 0.000000 0.000000 1.000000)) ) (assign (constant bool (1)) (y) (var_ref vec_ctor@0x8580058) (swiz xxxx (var_ref g@0x8580218) )) (assign (constant bool (1)) (z) (var_ref vec_ctor@0x8580058) (constant vec4 (0.000000 0.000000 0.000000 1.000000)) ) (assign (constant bool (1)) (w) (var_ref vec_ctor@0x8580058) (constant vec4 (0.000000 0.000000 0.000000 1.000000)) ) (assign (constant bool (1)) (xyzw) (var_ref gl_FragColor@0x84d32a0) (var_ref vec_ctor@0x8580058) ) )) ) A similar optimization could be done for matrix constructors, but it is a little more complicate there.
2010-08-31ir_to_mesa: Sort the uniform list we're adding to Parameters[] order.Eric Anholt
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
2010-08-31ir_to_mesa: Fix struct/class confusionnobled
2010-08-31ir_to_mesa: Set up our instruction nodes with zeroed data.Eric Anholt
cond_update wasn't being set by emit_op3, leading to valgrind complaints, and failures in several piglit tests when built with clang.
2010-08-31ast_to_hir: Add support for bit-wise operators (but not shifts).Kenneth Graunke
Previously, using bit-wise operators in some larger expression would crash on a NULL pointer dereference. This code at least doesn't crash. Fixes piglit test bitwise-01.frag.
2010-08-31st/egl: Enable EGL_MESA_drm_display.Chia-I Wu
2010-08-31egl: Mark EGL_MESA_screen_surface as obsolete.Chia-I Wu
EGL_MESA_drm_{display,image} can achieve the same functionality.
2010-08-31r600g: fix up depth write swizzles.Dave Airlie
For some reason r600c, emits extra instructions in the FP to do the depth write output swizzle, I'm not sure this is required, so here I'm doing it in the exports. this fixes the mesa trivial demos tri-depthwrite and tri-depthwrite2, it doesn't fix the glsl1 gl_FragDepth writing test however.