r600g: use long long integers for instance addr calculation

Using a long for instance addr calculation isn't
big enough on 32bit systems, use a long long int instead.

Thanks to Rafael Monica for fixing this.
This commit is contained in:
Christian König
2011-03-06 23:34:03 +01:00
parent 6538b5824e
commit e0cf8471a1
+1 -1
View File
@@ -2102,7 +2102,7 @@ int r600_vertex_elements_build_fetch_shader(struct r600_pipe_context *rctx, stru
alu.src[0].chan = 3;
alu.src[1].sel = V_SQ_ALU_SRC_LITERAL;
alu.src[1].value = (1l << 32) / elements[i].instance_divisor + 1;
alu.src[1].value = (1ll << 32) / elements[i].instance_divisor + 1;
alu.dst.sel = i + 1;
alu.dst.chan = 3;