Lines Matching refs:ir
27 * IR lower pass to perform the division of texture coordinates by the texture
32 * in the IR. For GPUs that don't, this saves the driver needing the
38 #include "ir.h"
47 ir_visitor_status visit_leave(ir_texture *ir);
53 lower_texture_projection_visitor::visit_leave(ir_texture *ir)
55 if (!ir->projector)
58 void *mem_ctx = hieralloc_parent(ir);
60 ir_variable *var = new(mem_ctx) ir_variable(ir->projector->type,
65 ir->projector->type,
66 ir->projector,
72 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul,
73 ir->coordinate->type,
74 ir->coordinate,
77 if (ir->shadow_comparitor) {
79 ir->shadow_comparitor = new(mem_ctx) ir_expression(ir_binop_mul,
80 ir->shadow_comparitor->type,
81 ir->shadow_comparitor,
85 ir->projector = NULL;