summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "r600g: precompute some of the hw state""Jerome Glisse2010-09-0111-120/+229
| | | | | | | | This reverts commit 1fa7245c348cb7aced81f1672140f64cb6450e2f. Conflicts: src/gallium/drivers/r600/r600_state.c
* nouveau/nvfx: Remove enforcement of bit depth being same as front bufferPatrice Mandin2010-09-011-17/+0
| | | | Signed-off-by: Patrice Mandin <[email protected]>
* mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic2010-09-011-0/+2
| | | | | | See fd.o bug 29909. Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Adjust mklib so -linker and -cplusplus options are processed more ↵Jon TURNEY2010-09-011-6/+10
| | | | | | | | | | like they are for linux It looks like we were ignoring -linker when -noprefix wasn't present, and when -noprefix was present, -linker was mandatory and -cplusplus ignored. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Teach mklib/minstall to properly install libraries on cygwinJon TURNEY2010-09-013-11/+41
| | | | | | | | | | | | | | | | Teach mklib/minstall more about cygwin so libraries are properly installed Have mklib install the .dll into the lib/ staging directory as well Have minstall install the .dll into PREFIX/bin at the same time as installing the .dll.a link library into PREFIX/lib mklib uses a '-' rather than a '.' as the separator before the version number in library names on cygwin. Change the install globs so they match library names like that. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Change mklib not to report the full archname on cygwinJon TURNEY2010-09-011-2/+2
| | | | | | | | | Change mklib not to report the full archname when building a library for cygwin (which is something like 'CYGWIN_NT-5.1' or 'CYGWIN_NT-6.1-WOW64' and kind of confusing), but just 'CYGWIN'. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Have mklib exit with error code if link failsJon TURNEY2010-09-011-7/+2
| | | | | Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* glsl2: Disallow function declarations within function definitions in GLSL 1.20Ian Romanick2010-09-011-1/+36
| | | | | | | 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.
* r600: cube mipmap levels are aligned to 8 faces only starting from r7xxAndre Maasikas2010-09-011-3/+3
|
* r600g: correct cb/zb offset emits.Dave Airlie2010-09-011-2/+2
| | | | This fixes fbo-3d and fbo-cubemap
* Revert "r600g: precompute some of the hw state"Dave Airlie2010-09-0111-229/+216
| | | | | | | | | | 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.
* r600g: fix typo causing segfault.Dave Airlie2010-09-011-1/+1
| | | | | | | | 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.
* r600g: fix glean texCube and shadows.Dave Airlie2010-09-011-5/+149
| | | | add cube and shadow support to the texture code.
* gallivm: fix bug in nested conditionalsBrian Paul2010-08-311-2/+4
| | | | This, plus the previous commit fix fd.o bug 29806.
* glsl2: fix bug in atan(y, x) functionBrian Paul2010-08-312-13/+9
| | | | When x==0, the result was wrong. Fixes piglit glsl-fs-atan-1.shader_test
* 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.
* llvmpipe: slightly simplify build_maskKeith Whitwell2010-08-311-6/+2
|
* llvmpipe: combine linear mask calculationKeith Whitwell2010-08-312-15/+84
|
* llvmpipe: intrinsics versions of build_mask functionsKeith Whitwell2010-08-311-1/+77
|
* glsl2: Write vector constructor constants in a single assignmentIan Romanick2010-08-311-11/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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.
* ast_to_hir: Add support for bit-wise operators (but not shifts).Kenneth Graunke2010-08-311-2/+53
| | | | | | | 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.
* st/egl: Enable EGL_MESA_drm_display.Chia-I Wu2010-08-311-1/+3
|
* egl: Mark EGL_MESA_screen_surface as obsolete.Chia-I Wu2010-08-311-1/+1
| | | | EGL_MESA_drm_{display,image} can achieve the same functionality.
* r600g: fix up depth write swizzles.Dave Airlie2010-08-311-1/+4
| | | | | | | | 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.
* r600g: fix fp-fragment-position test.Dave Airlie2010-08-311-0/+1
|
* r600g: fix typo in last commitDave Airlie2010-08-311-1/+1
|
* r600g: fix position input to fragment shader.Dave Airlie2010-08-311-0/+7
| | | | this fixes a few if the fs shader tests, 10 more piglits
* r600g: remove unneeded function call from scsDave Airlie2010-08-311-4/+0
|
* 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.
* linker: Require an exact matching signature when looking for prototypes.Kenneth Graunke2010-08-301-1/+1
| | | | | | | Fixes piglit test glsl-override-builtin. The linker incorrectly found the prototype for the float signature, rather than adding a new prototype with the int return type. This caused ir_calls with type int to have their callees set to the float signature, triggering an assert.
* r600g: make LIT work properlyDave Airlie2010-08-311-8/+3
| | | | | | | this is a bit of a workaround, something is wrong with the literal emits here so we just use the trig copy function to copy the immd to a temp at start of op. fix VP/FP LIT tests
* 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]>
* r600g: fixup trig functions when input is a literalDave Airlie2010-08-311-9/+67
| | | | | | | | | So as the trig functions used up the literal spots for the PI work, if the arg0 was an immediate we'd hit failure, so copy the literal before starting. add some tracking of max temp used to avoid trashing temp regs. 5 more piglits, fp1 COS,SCS,SIN tests
* r600g: make sure LIT splits constantsDave Airlie2010-08-311-14/+11
|
* r600g: fix constant splittingDave Airlie2010-08-311-2/+2
| | | | constant splitting was broken for multi-constant cases, fixes fp1 CMP+MAD, vp1 CMP.
* r600g: fix LIT testsDave Airlie2010-08-311-2/+3
|
* r600g: add missing literalsDave Airlie2010-08-312-1/+33
| | | | | | | Also add an error if we hit this problem again, we need to do this better possibly tying the literal addition to the last flag. Signed-off-by: Dave Airlie <[email protected]>
* linker: Handle varying arrays, matrices, and arrays of matricesIan Romanick2010-08-301-6/+15
| | | | Fixes piglit test case glsl-array-varying-01.
* Don't pass -ffast-math to clang, since it ignores it and complains.Eric Anholt2010-08-301-1/+4
|
* Make configure work with clangnobled2010-08-301-1/+15
| | | | | It was mistaking clang for gcc and deciding its version was too low.
* Add talloc to osmesa library dependenciesJon TURNEY2010-08-302-4/+4
| | | | | | also link osmesa with C++ standard libraries, as it now contains C++ code Signed-off-by: Jon TURNEY <[email protected]>
* Add talloc to dependencies for libGL built with xlib driverJon TURNEY2010-08-301-2/+2
| | | | Signed-off-by: Jon TURNEY <[email protected]>
* glsl: Clear the static values of builtin function profiles at release.Eric Anholt2010-08-302-152/+104
| | | | | | | When releasing the builtin functions, we were just freeing the memory, not telling the builtin function loader that we had freed its memory. I wish I had done ARB_ES2_compatibility so we had regression testing of this path. Fixes segfault on changing video options in nexuiz.
* glsl2: Commit generated files changed by previous commitIan Romanick2010-08-303-2553/+2646
|
* glsl2: Parse #pragma linesIan Romanick2010-08-302-3/+33
| | | | | | | | All pragmas are currently ignored. Also, the error messages when a pragma is used incorrectly (i.e., '#pragma debug(on)' inside a function) are crap, but I think this is sufficient for now. Fixes piglit test cases pragma-0[1-8].(vert|frag).
* 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]>
* r600g: precompute some of the hw stateJerome Glisse2010-08-3011-216/+229
| | | | | | | | | | Idea is to build hw state at pipe state creation and reuse them while keeping a non PM4 packet interface btw winsys & pipe driver. This commit also force rebuild of pm4 packet on each call to radeon_state_pm4 which in turn slow down everythings, this will be addressed. Signed-off-by: Jerome Glisse <[email protected]>