diff options
author | Brian Paul <[email protected]> | 2009-02-11 14:11:48 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-11 14:11:48 -0700 |
commit | 6b06a6b929aa742f92653728254255f1867d6210 (patch) | |
tree | 63347ff6fe38757e048d50735f0b73e35de6d0ef /src/gallium/auxiliary/util/u_linear.h | |
parent | 81374d1ebed16aa3eed336295e80be0dfebfad75 (diff) |
gallium: const-correctness for u_linear.c functions
Diffstat (limited to 'src/gallium/auxiliary/util/u_linear.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_linear.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_linear.h b/src/gallium/auxiliary/util/u_linear.h index e337cfd7702..1589f029bc4 100644 --- a/src/gallium/auxiliary/util/u_linear.h +++ b/src/gallium/auxiliary/util/u_linear.h @@ -3,6 +3,7 @@ #define U_LINEAR_H #include "pipe/p_format.h" + struct pipe_tile_info { unsigned size; @@ -23,10 +24,10 @@ struct pipe_tile_info struct pipe_format_block block; }; -void pipe_linear_to_tile(size_t src_stride, void *src_ptr, +void pipe_linear_to_tile(size_t src_stride, const void *src_ptr, struct pipe_tile_info *t, void *dst_ptr); -void pipe_linear_from_tile(struct pipe_tile_info *t, void *src_ptr, +void pipe_linear_from_tile(struct pipe_tile_info *t, const void *src_ptr, size_t dst_stride, void *dst_ptr); /** @@ -39,11 +40,11 @@ void pipe_linear_from_tile(struct pipe_tile_info *t, void *src_ptr, * @tiles_y number of tiles in y axis */ void pipe_linear_fill_info(struct pipe_tile_info *t, - struct pipe_format_block *block, + const struct pipe_format_block *block, unsigned tile_width, unsigned tile_height, unsigned tiles_x, unsigned tiles_y); -static INLINE boolean pipe_linear_check_tile(struct pipe_tile_info *t) +static INLINE boolean pipe_linear_check_tile(const struct pipe_tile_info *t) { if (t->tile.size != t->block.size * t->cols * t->rows) return FALSE; |