Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gallivm: Pass condition masks as an unsigned bitmask. | José Fonseca | 2010-09-05 | 6 | -28/+42 |
| | | | | Much more convenient than boolean arrays. | ||||
* | gallivm: Cope with tgsi instruction reallocation failure. | José Fonseca | 2010-09-05 | 1 | -6/+10 |
| | |||||
* | ir_reader: Only validate IR when a global 'debug' flag is set. | Kenneth Graunke | 2010-09-05 | 1 | -1/+4 |
| | | | | | | | | | This extra validation is very useful when working on the built-ins, but in general overkill - the results should stay the same unless the built-ins or ir_validate have changed. Also, validating all the built-in functions in every test case makes piglit run unacceptably slow. | ||||
* | r300g,r300c: memset the compiler struct to zeros | Marek Olšák | 2010-09-05 | 4 | -0/+4 |
| | | | | This should fix bogus reports "Too many temporaries." and maybe some others. | ||||
* | r300/compiler: Remove stray break statement | Tom Stellard | 2010-09-04 | 1 | -1/+0 |
| | | | | This fixes glsl-fs-loop-nested. | ||||
* | nvfx: support unlimited constants and immediates in fp | Luca Barbieri | 2010-09-05 | 2 | -49/+37 |
| | |||||
* | nvfx: support using blitter to copy depth/stencil resources, fix Heaven | Luca Barbieri | 2010-09-05 | 1 | -1/+8 |
| | | | | | | | | | | We might want to copy them as color ones though. Also works around crash in Unigine Heaven due to failing to allocate a 64 MB temporary in GART for a CPU copy. Unigine Heaven now works on nv40, albeit with very heavy glitches (with the floating branch with render_hdr 0). | ||||
* | r300/compiler: fix the instruction limit in vertex shaders | Marek Olšák | 2010-09-05 | 1 | -1/+1 |
| | | | | | | Broken with commit d774b0c710bb7d833d17bd12f5151a0176baad96. Reported by Chris Rankin. | ||||
* | nvfx: support rendering to more formats | Luca Barbieri | 2010-09-04 | 4 | -2/+30 |
| | |||||
* | nvfx: move 2D format selection logic to 2D code | Luca Barbieri | 2010-09-04 | 3 | -67/+75 |
| | |||||
* | nvfx: fix swizzling of high bpp surfaces | Luca Barbieri | 2010-09-04 | 2 | -39/+63 |
| | |||||
* | nvfx: fix some subrectangle copies | Luca Barbieri | 2010-09-04 | 1 | -4/+6 |
| | | | | | | Actually, we may want to get rid of the x/y coordinates for linear surfaces, and realign the origin from scratch if necessary, instead of doing this "on-demand realignment". | ||||
* | nvfx: fix inlinining in nv04_2d.c | Luca Barbieri | 2010-09-04 | 1 | -1/+1 |
| | |||||
* | nvfx: fix the temporary copying logic and add asserts | Luca Barbieri | 2010-09-04 | 3 | -7/+24 |
| | |||||
* | nvfx: prevent swizzled rendering into formats where it's not supported | Luca Barbieri | 2010-09-04 | 1 | -2/+4 |
| | |||||
* | Revert "ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to ↵ | Marek Olšák | 2010-09-04 | 1 | -291/+345 |
| | | | | | | | | | | | | | | a temp." This reverts commit 5ad74779cea07cc6a19a52874cdaef8b018e2f1b. Sorry, but I had to revert this. Any commit which needlessly increases the number of temporaries is wrong. More temporaries mean less shader performance because of reduced parallelism and therefore less efficient latency hiding. In this case, there is possible performance degradation of every shader which uses GL state variables. I cannot accept this. | ||||
* | Revert "r300g: refuse to create a texture with size 0" | Marek Olšák | 2010-09-04 | 1 | -12/+0 |
| | | | | | | | | | | This reverts commit 5cdedaaf295acae13ac10feeb3143d83bc53d314. https://bugs.freedesktop.org/show_bug.cgi?id=30002 Conflicts: src/gallium/drivers/r300/r300_texture.c | ||||
* | r300g: remove unnecessary assignments | Marek Olšák | 2010-09-04 | 1 | -6/+0 |
| | |||||
* | r300/compiler: indent printed instructions according to the branch depth | Marek Olšák | 2010-09-04 | 1 | -4/+44 |
| | |||||
* | r300g: skip draw calls with no vertex elements, fixing hardlocks | Marek Olšák | 2010-09-04 | 1 | -0/+3 |
| | |||||
* | r300/compiler: use limits from the compiler input instead of inline constants | Marek Olšák | 2010-09-04 | 1 | -5/+4 |
| | |||||
* | r300/compiler: improve register allocation with indexable temporaries for VS | Marek Olšák | 2010-09-04 | 1 | -17/+46 |
| | | | | | Register allocation can now reallocate temporaries right after the last indexed source operand, instead of being disabled for the whole shader. | ||||
* | r300/compiler: fix handling of indexed temporaries in peephole | Marek Olšák | 2010-09-04 | 1 | -1/+9 |
| | |||||
* | r300/compiler: disable deadcode elimination for indexed dst operands | Marek Olšák | 2010-09-04 | 1 | -0/+14 |
| | |||||
* | r300/compiler: allocate at least FS inputs if register allocation is disabled | Marek Olšák | 2010-09-04 | 3 | -9/+52 |
| | |||||
* | r300g: add a new debug option which disables compiler optimizations | Marek Olšák | 2010-09-04 | 10 | -24/+35 |
| | | | | | | | | | | | | Those are: - dead-code elimination - constant folding - peephole (mainly copy propagation) - register allocation There are some bugs which I need to track down. Also fix up the descriptions of all the debug options. | ||||
* | 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 | 7 | -1/+8 |
| | |||||
* | 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 | 8 | -10/+18 |
| | |||||
* | 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. | ||||
* | r300g: only check for an empty shader if there are no compile errors | Marek Olšák | 2010-09-04 | 1 | -8/+8 |
| | |||||
* | r300/compiler: add new compiler parameter max_alu_insts | Marek Olšák | 2010-09-04 | 12 | -35/+38 |
| | |||||
* | r300/compiler: put emulate_loop_state in radeon_compiler | Marek Olšák | 2010-09-04 | 7 | -24/+20 |
| | |||||
* | ir_reader: Run ir_validate on the generated IR. | Kenneth Graunke | 2010-09-04 | 1 | -0/+2 |
| | | | | It's just too easy to get something wrong in hand-written IR. | ||||
* | ir_reader: Emit global variables at the top of the instruction list. | Kenneth Graunke | 2010-09-04 | 1 | -2/+11 |
| | | | | | | | | Since functions are emitted when scanning for prototypes, functions always come first, even if the original IR listed the variable declarations first. Fixes an ir_validate error (to be turned on in the next commit). | ||||
* | ir_reader: Drop support for reading the old assignment format. | Kenneth Graunke | 2010-09-04 | 1 | -6/+4 |
| | |||||
* | glsl: Regenerate autogenerated file builtin_function.cpp. | Kenneth Graunke | 2010-09-04 | 1 | -402/+390 |
| | |||||
* | glsl/builtins: Convert assignments to new format (with write mask). | Kenneth Graunke | 2010-09-04 | 15 | -398/+389 |
| | |||||
* | ir_reader: Read the new assignment format (with write mask). | Kenneth Graunke | 2010-09-04 | 1 | -6/+46 |
| | | | | | This preserves the ability to read the old format, for momentary compatibility with all the existing IR implementations of built-ins. | ||||
* | ir_reader: Track the current function and report it in error messages. | Kenneth Graunke | 2010-09-04 | 1 | -0/+6 |
| | |||||
* | glsl/builtins: Actually print the info log if reading a builtin failed. | Kenneth Graunke | 2010-09-04 | 1 | -0/+1 |
| | |||||
* | nvfx: consolidate tiny files | Luca Barbieri | 2010-09-04 | 9 | -134/+94 |
| | | | | | We probably want to reorganize the remaining files too, but that's for later, maybe. | ||||
* | mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image | Luca Barbieri | 2010-09-04 | 1 | -0/+2 |
| | | | | Fixes piglit fdo25614-genmipmap. | ||||
* | nvfx: fix vp DP2 | Luca Barbieri | 2010-09-04 | 1 | -1/+1 |
| |