Re: [Mesa-dev] [PATCH 06/14] glsl: Add a pass to lower bitfield-insert into bfm+bfi.

2013-04-29 Thread Eric Anholt
Matt Turner writes: > 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. > +void > +lower_instructions_visi

[Mesa-dev] [PATCH 06/14] glsl: Add a pass to lower bitfield-insert into bfm+bfi.

2013-04-28 Thread Matt Turner
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. --- src/glsl/ir.cpp| 2 ++ src/glsl/i