Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | r300/compiler: compute the final number of temporaries during translation | Marek Olšák | 2010-09-04 | 1 | -7/+23 |
| | | | | | And not during the register allocation, which may be skipped for debugging purposes. Also the predicate register is now added to the number of temps. | ||||
* | r300/compiler: make optimizations not use 0.5 swizzles in vertex shaders | Marek Olšák | 2010-09-04 | 5 | -1/+6 |
| | |||||
* | r300/compiler: use peephole and constant folding for vertex shaders too | Marek Olšák | 2010-09-04 | 1 | -1/+3 |
| | |||||
* | r300/compiler: remove unused enum OPCODE_REPL_ALPHA | Marek Olšák | 2010-09-04 | 1 | -5/+0 |
| | | | | We use RC_OPCODE_REPL_ALPHA instead. | ||||
* | r300/compiler: refactor fragment shader compilation | Marek Olšák | 2010-09-04 | 19 | -165/+85 |
| | | | | This cleans up the mess in r3xx_compile_fragment_program. | ||||
* | r300/compiler: add new compiler parameter max_constants | Marek Olšák | 2010-09-04 | 6 | -10/+16 |
| | |||||
* | r300/compiler: refactor vertex shader compilation | Marek Olšák | 2010-09-04 | 18 | -161/+140 |
| | | | | | | First list compiler passes in an array, then run the new function rc_run_compiler. Every backend may need a different set of passes. This cleans up the mess in r3xx_compile_vertex_program. | ||||
* | r300/compiler: remove a redundant parameter in rc_pair_regalloc | Marek Olšák | 2010-09-04 | 3 | -3/+4 |
| | |||||
* | r300/compiler: remove a redundant parameter in rc_dataflow_deadcode | Marek Olšák | 2010-09-04 | 4 | -5/+5 |
| | | | | &c->Base == c. | ||||
* | r300/compiler: use null-terminated array of transformation functions | Marek Olšák | 2010-09-04 | 4 | -15/+20 |
| | | | | | I need to reduce the number of parameters of each compiler pass function. This is part of a larger cleanup. | ||||
* | r300/compiler: add new compiler parameter max_alu_insts | Marek Olšák | 2010-09-04 | 10 | -35/+36 |
| | |||||
* | r300/compiler: put emulate_loop_state in radeon_compiler | Marek Olšák | 2010-09-04 | 7 | -24/+20 |
| | |||||
* | r600c: add proper returns for some evergreen functions | Alex Deucher | 2010-09-03 | 2 | -2/+8 |
| | | | | | | | these weren't checked anyway. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=29999 | ||||
* | r600c: emit DB_HTILE_DATA_BASE on evergreen | Alex Deucher | 2010-09-03 | 1 | -4/+11 |
| | | | | Make the hw happy. | ||||
* | i965: DP2 produces a scalar result like DP3, DP4, etc. | Eric Anholt | 2010-09-01 | 1 | -0/+1 |
| | | | | Fixes glsl-fs-dot-vec2-2. | ||||
* | r600: cube mipmap levels are aligned to 8 faces only starting from r7xx | Andre Maasikas | 2010-09-01 | 1 | -3/+3 |
| | |||||
* | i965: fix depth test on sandybridge | Zhenyu Wang | 2010-08-31 | 3 | -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 dependencies | Jon TURNEY | 2010-08-30 | 1 | -2/+2 |
| | | | | | | also link osmesa with C++ standard libraries, as it now contains C++ code Signed-off-by: Jon TURNEY <[email protected]> | ||||
* | i965: Clear the cached constant buffer entry in the VS at control flow. | Eric Anholt | 2010-08-30 | 1 | -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 Anholt | 2010-08-30 | 1 | -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 Vivier | 2010-08-30 | 1 | -0/+13 |
| | | | | Bug #29855 | ||||
* | i965: Add support for loops to the new FS backend. | Eric Anholt | 2010-08-30 | 1 | -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 Anholt | 2010-08-30 | 4 | -14/+10 |
| | | | | We always need to set it, so pass it in. | ||||
* | i965: Add "discard" support to the new FS backend. | Eric Anholt | 2010-08-30 | 1 | -1/+19 |
| | | | | Fixes 3 testcases related to discard. | ||||
* | i965: Fix the new implementation of ir_unop_sign to match brw_wm_emit.c | Eric Anholt | 2010-08-30 | 1 | -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 Anholt | 2010-08-30 | 2 | -17/+60 |
| | | | | | Fixes 5 piglit tests for bias. Note that LOD is a 1.30 feature and not yet supported. | ||||
* | evergreen : fix shader const allocation and instruction bugs. | Richard Li | 2010-08-29 | 6 | -20/+48 |
| | |||||
* | i965: Add initial support for texturing to the new FS backend. | Eric Anholt | 2010-08-28 | 1 | -15/+128 |
| | | | | Fixes 11 piglit tests. | ||||
* | i965: Add disasm for gen5 sampler messages. | Eric Anholt | 2010-08-28 | 1 | -6/+19 |
| | |||||
* | i965: Move libdrm/C++ hack introduced in fa2deb3d to intel_context.h | Cedric Vivier | 2010-08-28 | 1 | -5/+0 |
| | | | | | | | Fixes build on Linux/GCC 4.4 as libdrm includes are also used by other brw_fs_*.cpp files. Bug #29855 | ||||
* | i965: Set the pop count on BRK/CONT inside of an if statement in the FS. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -0/+1 |
| | | | | Bug #29665. | ||||
* | i965: Don't strip negate/abs flags when assigning uniform locations. | Eric Anholt | 2010-08-27 | 1 | -5/+5 |
| | | | | Fixes glsl-algebraic-sub-zero-4. | ||||
* | i965: Add missing handling for BRW_OPCODE_SEL. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -0/+4 |
| | | | | Fixes glsl-fs-mod. | ||||
* | i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg. | Eric Anholt | 2010-08-27 | 1 | -2/+2 |
| | | | | Fixes glsl-fs-neg and 5 other tests. | ||||
* | i965: Add generate() handling for AND, OR, XOR. | Eric Anholt | 2010-08-27 | 1 | -0/+11 |
| | | | | 10 more piglit tests pass. | ||||
* | i965: Add support for if instructions in the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -1/+61 |
| | | | | 20 more piglit tests pass. | ||||
* | i965: When encountering an unknown opcode in new FS backend, print its name. | Eric Anholt | 2010-08-27 | 3 | -14/+23 |
| | |||||
* | i965: Fix the maximum grf counting in the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | i965: Validate the IR tree after doing our custom optimization passes. | Eric Anholt | 2010-08-27 | 1 | -0/+2 |
| | | | | | | | 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. | ||||
* | i965: Add a bit of support for matrices to the new FS. | Eric Anholt | 2010-08-27 | 1 | -11/+21 |
| | |||||
* | i965: Fix destination writemasking in the new FS. | Eric Anholt | 2010-08-27 | 1 | -6/+5 |
| | |||||
* | i965: Fix swizzling in vector splitting for the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -0/+3 |
| | | | | | | | | 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). | ||||
* | i965: Add preliminary support for uniforms to the new FS backend. | Eric Anholt | 2010-08-26 | 1 | -8/+55 |
| | | | | +269 piglits | ||||
* | i965: Abort on gl_FragDepth in the new FS backend for now. | Eric Anholt | 2010-08-26 | 1 | -0/+1 |
| | | | | | It hangs the GPU due to FB_WRITE handling being incomplete. There are bigger issues to handle first. | ||||
* | i965: Fix up and actually enable the NewShader and NewShaderProgram hooks. | Eric Anholt | 2010-08-26 | 2 | -3/+8 |
| |