Before, the instruction's CondUpdate field was mistakenly effecting the
constant-fetch operation.
Fixes progs/glsl/bump.c demo. But there are some other issues related
to condition flags and IF/ELSE that need investigation...
for (i = 0; i < c->nr_fp_insns; i++) {
struct prog_instruction *inst = &c->prog_instructions[i];
+ /* fetch any constants that this instruction needs */
+ if (c->use_const_buffer)
+ fetch_constants(c, inst);
+
if (inst->CondUpdate)
brw_set_conditionalmod(p, BRW_CONDITIONAL_NZ);
else
_mesa_print_instruction(inst);
*/
- /* fetch any constants that this instruction needs */
- if (c->use_const_buffer)
- fetch_constants(c, inst);
-
switch (inst->Opcode) {
case WM_PIXELXY:
emit_pixel_xy(c, inst);