r600g: fix segfault if texture operand is a literal