diff options
author | Christian König <deathsimple@vodafone.de> | 2011-03-06 23:34:03 +0100 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2011-03-06 23:37:47 +0100 |
commit | e0cf8471a17ca47ed561b3a2ca8c604183213d6b (patch) | |
tree | 829abe81f9e1263db250bc99cec091670daa0808 /src | |
parent | 6538b5824e298eaebede2d9686c7607c44ab446a (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index d4d8de2fe87..e788c6c054e 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -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; |