diff options
author | Iago Toral Quiroga <[email protected]> | 2018-04-26 10:02:04 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2018-05-03 11:40:25 +0200 |
commit | b9a3d8c23e53b261ec626c13f0f0f6858f919371 (patch) | |
tree | 772ce6198afd1af0ac14cc7c642cd6e4b4f427f0 /src/compiler/Makefile.sources | |
parent | f575277f7e4cd3568ae2b0d8d2b0c6e0cf611d62 (diff) |
compiler/nir: add a lowering pass to convert the bit size of ALU operations
Not all bit-sizes may be supported natively in hardware for all operations.
This pass allows drivers to lower such operations to a bit-size that is
actually supported and then converts the result back to the original
bit-size.
Compiler backends control which operations and wich bit-sizes require
the lowering through a callback function.
v2: generalize this pass and make it available in NIR core (Rob, Jason)
v3: remove some temporaries and reduce nesting in instruction loop using
a continue statement (Jason)
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/Makefile.sources')
-rw-r--r-- | src/compiler/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index b98ea673705..a219ed9f794 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -217,6 +217,7 @@ NIR_FILES = \ nir/nir_lower_alu_to_scalar.c \ nir/nir_lower_atomics_to_ssbo.c \ nir/nir_lower_bitmap.c \ + nir/nir_lower_bit_size.c \ nir/nir_lower_clamp_color_outputs.c \ nir/nir_lower_clip.c \ nir/nir_lower_clip_cull_distance_arrays.c \ |