On Tue, Apr 23, 2013 at 2:23 AM, Chris Forbes wrote:
> + /* Save op0 */
> + ir_variable *temp = new(ir) ir_variable(ir->operands[0]->
> type, "bfi_base",
> + ir_var_temporary);
> + this->base_ir->insert_before(temp);
> + this->base_ir->insert_befor
+ /* Save op0 */
+ ir_variable *temp = new(ir) ir_variable(ir->operands[0]->
type, "bfi_base",
+ ir_var_temporary);
+ this->base_ir->insert_before(temp);
+ this->base_ir->insert_before(assign(temp, ir->operands[0]));
+
+ ir->operation = ir_triop_b
i965/Gen7+ and Radeon/Evergreen+ have bfm/bfi instructions to implement
bitfieldInsert() from ARB_gpu_shader5.
---
src/glsl/ir.cpp |2 +
src/glsl/ir.h | 18
src/glsl/ir_optimization.h |1 +
src/glsl/ir_validate.cpp| 12 +++