Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | i965/fs_nir: Don't duplicate emit_general_interpolation | Jason Ekstrand | 2015-01-15 | 2 | -110/+4 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs: Don't take an ir_variable for emit_general_interpolation | Jason Ekstrand | 2015-01-15 | 4 | -35/+41 |
| | | | | | | | | | | Previously, emit_general_interpolation took an ir_variable and pulled the information it needed from that. This meant that in fs_fp, we were constructing a dummy ir_variable just to pass into it. This commit makes emit_general_interpolation take only the information it needs and gets rid of the fs_fp cruft. Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir: Add intrinsics to do alternate interpolation on inputs | Jason Ekstrand | 2015-01-15 | 1 | -17/+35 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir: Add NIR_TRUE and NIR_FALSE constants and use them for boolean immediates | Jason Ekstrand | 2015-01-15 | 2 | -4/+19 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Add atomic counters support | Jason Ekstrand | 2015-01-15 | 1 | -3/+22 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir/lower_atomics: Multiply array offsets by ATOMIC_COUNTER_SIZE | Jason Ekstrand | 2015-01-15 | 1 | -1/+17 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Handle coarse/fine derivatives | Jason Ekstrand | 2015-01-15 | 1 | -0/+18 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir/glsl: Add support for coarse and fine derivatives | Jason Ekstrand | 2015-01-15 | 1 | -2/+6 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir: Add fine and coarse derivative opcodes | Jason Ekstrand | 2015-01-15 | 1 | -0/+4 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | nir/glsl: Add support for saturate | Jason Ekstrand | 2015-01-15 | 1 | -0/+5 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Add support for sample_pos and sample_id | Jason Ekstrand | 2015-01-15 | 1 | -3/+14 |
| | |||||
* | Fix up varying pull constants | Jason Ekstrand | 2015-01-15 | 1 | -1/+1 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | Fix what I think are a few NIR typos | Jason Ekstrand | 2015-01-15 | 1 | -3/+3 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Use the correct texture offset immediate | Jason Ekstrand | 2015-01-15 | 1 | -4/+3 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Use the correct types for texture inputs | Jason Ekstrand | 2015-01-15 | 1 | -7/+25 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs_nir: Make the sampler register always unsigned | Jason Ekstrand | 2015-01-15 | 1 | -2/+2 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs: Only use nir for 8-wide non-fast-clear shaders. | Jason Ekstrand | 2015-01-15 | 1 | -1/+2 |
| | | | | Reviewed-by: Connor Abbott <[email protected]> | ||||
* | i965/fs: add a NIR frontend | Connor Abbott | 2015-01-15 | 5 | -4/+1756 |
| | | | | | | | | | | This is similar to the GLSL IR frontend, except consuming NIR. This lets us test NIR as part of an actual compiler. v2: Jason Ekstrand <[email protected]>: Make brw_fs_nir build again Only use NIR of INTEL_USE_NIR is set whitespace fixes | ||||
* | i965/fs: Don't pass through the coordinate type | Connor Abbott | 2015-01-15 | 3 | -22/+21 |
| | | | | All we really need is the number of components. | ||||
* | i965/fs: make emit_fragcoord_interpolation() not take an ir_variable | Connor Abbott | 2015-01-15 | 4 | -9/+14 |
| | |||||
* | nir: add an SSA-based dead code elimination pass | Connor Abbott | 2015-01-15 | 3 | -0/+191 |
| | | | | | v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | nir: add an SSA-based copy propagation pass | Connor Abbott | 2015-01-15 | 3 | -0/+317 |
| | |||||
* | nir: add a pass to convert to SSA | Connor Abbott | 2015-01-15 | 3 | -0/+686 |
| | | | | | v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | nir: calculate dominance information | Connor Abbott | 2015-01-15 | 4 | -1/+337 |
| | |||||
* | nir: add an optimization to turn global registers into local registers | Connor Abbott | 2015-01-15 | 3 | -0/+106 |
| | | | | | After linking and inlining, this allows us to convert these registers into SSA values and optimise more code. | ||||
* | nir: add a pass to lower atomics | Connor Abbott | 2015-01-15 | 3 | -0/+130 |
| | | | | | v2: Jason Ekstrand <[email protected]> whitespace fixes | ||||
* | nir: add a pass to lower system value reads | Connor Abbott | 2015-01-15 | 3 | -0/+109 |
| | | | | | v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | nir: add a pass to lower sampler instructions | Connor Abbott | 2015-01-15 | 3 | -0/+176 |
| | |||||
* | nir: add a pass to remove unused variables | Connor Abbott | 2015-01-15 | 3 | -0/+141 |
| | | | | | | | | After we lower variables, we want to delete them in order to free up some memory. v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | nir: keep track of the number of input, output, and uniform slots | Connor Abbott | 2015-01-15 | 3 | -4/+16 |
| | |||||
* | nir: add a pass to lower variables for scalar backends | Connor Abbott | 2015-01-15 | 3 | -0/+1237 |
| | |||||
* | nir: add a glsl-to-nir pass | Connor Abbott | 2015-01-15 | 3 | -1/+1797 |
| | | | | | | v2: Jason Ekstrand <[email protected]>: Make glsl_to_nir build again fix whitespace | ||||
* | nir: add a validation pass | Connor Abbott | 2015-01-15 | 3 | -0/+793 |
| | | | | | | | This is similar to ir_validate.cpp. v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | nir: add a printer | Connor Abbott | 2015-01-15 | 3 | -0/+915 |
| | | | | | | | This is similar to ir_print_visitor.cpp. v2: Jason Ekstrand <[email protected]>: whitespace fixes | ||||
* | SQUASH: Fix comments from eric | Jason Ekstrand | 2015-01-15 | 1 | -0/+3 |
| | | | | Reviewed-by: Eric Anholt <[email protected]> | ||||
* | SQUASH: Add an assert | Jason Ekstrand | 2015-01-15 | 1 | -0/+1 |
| | |||||
* | nir: add core helper functions | Connor Abbott | 2015-01-15 | 3 | -3/+1815 |
| | | | | | | | | | These include functions for adding and removing various bits of IR and helpers for iterating over all the sources and destinations of an instruction. This is similar to ir.cpp. v2: Jason Ekstrand <[email protected]>: whitespace and automake fixes | ||||
* | SQUASH: Use the enum for the variable mode | Jason Ekstrand | 2015-01-15 | 1 | -1/+1 |
| | |||||
* | nir: add the core datastructures | Connor Abbott | 2015-01-15 | 6 | -0/+1751 |
| | | | | | | | | | | | | | This includes all the instructions, ifs, loops, functions, etc. This is similar to the information in ir.h. v2: Jason Ekstrand <[email protected]>: Include ralloc and hash_table from the util directory whitespace fixes Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-By glenn.kennard <[email protected]> | ||||
* | nir: add a simple C wrapper around glsl_types.h | Connor Abbott | 2015-01-15 | 4 | -1/+238 |
| | | | | | | | v2: Jason Ekstrand <[email protected]>: whitespace and automake fixes Reviewed-by: Eric Anholt <[email protected]> | ||||
* | nir: add initial README | Connor Abbott | 2015-01-15 | 1 | -0/+118 |
| | | | | Reviewed-by: Eric Anholt <[email protected]> | ||||
* | exec_list: add a list_foreach_typed_reverse() macro | Connor Abbott | 2015-01-15 | 1 | -0/+6 |
| | | | | Reviewed-by: Eric Anholt <[email protected]> | ||||
* | vc4: Add some dumping for STORE_TILE_BUFFER_GENERAL. | Eric Anholt | 2015-01-15 | 1 | -1/+79 |
| | |||||
* | vc4: Add dumping for the TILE_RENDERING_MODE_CONFIG packet. | Eric Anholt | 2015-01-15 | 1 | -1/+70 |
| | | | | I wanted to read it, so I wrote parsing. | ||||
* | vc4: Fix CL dumping trying to dump too far. | Eric Anholt | 2015-01-15 | 1 | -2/+2 |
| | | | | | Execution will end at the cl->next, because that's what ct0ea/ct1ea get programmed to. | ||||
* | vc4: Fix texture type masking. | Eric Anholt | 2015-01-15 | 1 | -1/+1 |
| | | | | | Everything from ETC1 to RGBA64 was getting its top bit dropped, but we didn't use any of those formats. | ||||
* | vc4: Colormask should apply after all other fragment ops (like logic op). | Eric Anholt | 2015-01-15 | 1 | -9/+18 |
| | | | | | Theoretically it should apply after dithering as well, but ditehring for 565 happens in fixed function in the TLB store. | ||||
* | vc4: No turning unpack arguments into small immediates. | Eric Anholt | 2015-01-15 | 1 | -0/+3 |
| | | | | | Since unpack only happens on things read from the A register file, we have to leave them as something that can be allocated to A (temp or uniform). | ||||
* | vc4: Move the tests for src needing to be an A register to vc4_qir.c. | Eric Anholt | 2015-01-15 | 3 | -17/+28 |
| | | | | I want it from another location. | ||||
* | vc4: Don't swap the raddr on instructions doing unpacks. | Eric Anholt | 2015-01-15 | 1 | -0/+5 |
| | | | | | It would mean different unpacking behavior, since only the A file does unpack (with PM==0). |