diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-08 17:50:46 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-08 19:03:40 +0100 |
commit | 350bbc946a2415c687deaeb600c7effec67d5fdc (patch) | |
tree | 5244fa668a1d6c350e32cb514a5064459be643e6 /src | |
parent | 3f626646793bf6d8d20aa277ad1bc760a4c271f5 (diff) |
util: Keep const keyword when unpacking formats.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_format_pack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_format_pack.py b/src/gallium/auxiliary/util/u_format_pack.py index 95d7691036..800edd3429 100644 --- a/src/gallium/auxiliary/util/u_format_pack.py +++ b/src/gallium/auxiliary/util/u_format_pack.py @@ -3,7 +3,7 @@ ''' /************************************************************************** * - * Copyright 2009 VMware, Inc. + * Copyright 2009-2010 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a @@ -376,7 +376,7 @@ def generate_unpack_kernel(format, dst_channel, dst_native_type): if format.is_bitmask(): depth = format.block_size() - print ' uint%u_t value = *(uint%u_t *)src;' % (depth, depth) + print ' uint%u_t value = *(const uint%u_t *)src;' % (depth, depth) # Declare the intermediate variables for i in range(format.nr_channels()): |