glsl: Add a pass to lower bitfield-insert into bfm+bfi.
i965/Gen7+ and Radeon/Evergreen+ have bfm/bfi instructions to implement bitfieldInsert() from ARB_gpu_shader5. v2: Add ir_binop_bfm and ir_triop_bfi to st_glsl_to_tgsi.cpp. Remove spurious temporary assignment and dereference. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#define MOD_TO_FRACT 0x20
|
||||
#define INT_DIV_TO_MUL_RCP 0x40
|
||||
#define LRP_TO_ARITH 0x80
|
||||
#define BITFIELD_INSERT_TO_BFM_BFI 0x100
|
||||
|
||||
/**
|
||||
* \see class lower_packing_builtins_visitor
|
||||
|
Reference in New Issue
Block a user