projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f62664
)
util: Keep const keyword when unpacking formats.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 8 Apr 2010 16:50:46 +0000
(17:50 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 8 Apr 2010 18:03:40 +0000
(19:03 +0100)
src/gallium/auxiliary/util/u_format_pack.py
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_format_pack.py
b/src/gallium/auxiliary/util/u_format_pack.py
index 95d769103682d23cda8b0c725b97628c57c50974..800edd34297d926a1d471c448adad60550353ab6 100644
(file)
--- 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
* 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()
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()):
# Declare the intermediate variables
for i in range(format.nr_channels()):