summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-06-04 21:19:41 +0100
committerAdam Jackson <ajax@redhat.com>2013-06-10 16:26:14 -0400
commit5876a4c71d382070541b11f3771d9af7b50c5d4f (patch)
treec5db68254f60e3b4fa596302cbe05295d9ed3c78 /src/gallium/auxiliary/draw/draw_private.h
parent337f21bc356a89a9c755aebabb64ba381a59e39b (diff)
downloadexternal_mesa3d-5876a4c71d382070541b11f3771d9af7b50c5d4f.zip
external_mesa3d-5876a4c71d382070541b11f3771d9af7b50c5d4f.tar.gz
external_mesa3d-5876a4c71d382070541b11f3771d9af7b50c5d4f.tar.bz2
draw: Fix type mismatch between draw_private.h and LLVM
draw_vertex_buffer declared the size field to be a size_t, but the LLVM code used an int32 instead. This caused problems on big-endian 64-bit targets, because the first 32-bit chunk of the 64-bit size_t was always 0. In one sense size_t seems like a good choice for a size, so one fix would have been to try to get the LLVM code to use the equivalent of size_t too. However, in practice, the size is taken from things like ~0 or width0, both of which are int-sized, so it seemed simpler to make the size field int-sized as well. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index f30f9af..adde647 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -71,7 +71,7 @@ struct draw_pt_front_end;
*/
struct draw_vertex_buffer {
const void *map;
- size_t size;
+ uint32_t size;
};
/**