nir: Add lowering from ibitfield_extract/ubitfield_extract to shifts.
V3D doesn't have opcodes for ibfe/ubfe, so we need to lower similarly to glsl/lower_instructions.cpp. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -1903,7 +1903,10 @@ typedef struct nir_shader_compiler_options {
|
||||
bool lower_fsqrt;
|
||||
bool lower_fmod32;
|
||||
bool lower_fmod64;
|
||||
/** Lowers ibitfield_extract/ubitfield_extract to ibfe/ubfe. */
|
||||
bool lower_bitfield_extract;
|
||||
/** Lowers ibitfield_extract/ubitfield_extract to bfm, compares, shifts. */
|
||||
bool lower_bitfield_extract_to_shifts;
|
||||
/** Lowers bitfield_insert to bfi/bfm */
|
||||
bool lower_bitfield_insert;
|
||||
/** Lowers bitfield_insert to bfm, compares, and shifts. */
|
||||
|
Reference in New Issue
Block a user