diff options
author | Marek Olšák <[email protected]> | 2016-04-19 02:21:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-22 01:14:14 +0200 |
commit | 3acaefb1bbf329059ab7e8d1ffa2b99b516e0f50 (patch) | |
tree | 14487f3a15923fe4ed230e1a884a87ee78b443b5 /src/gallium/drivers/radeonsi/si_blit.c | |
parent | 0954d5e9827baba4972e92a1f760cd891c9c0798 (diff) |
radeonsi: shorten slot masks to 32 bits
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_blit.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 7ca0e23b633..7b028c138fd 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -243,14 +243,14 @@ si_flush_depth_textures(struct si_context *sctx, struct si_textures_info *textures) { unsigned i; - uint64_t mask = textures->depth_texture_mask; + unsigned mask = textures->depth_texture_mask; while (mask) { struct pipe_sampler_view *view; struct si_sampler_view *sview; struct r600_texture *tex; - i = u_bit_scan64(&mask); + i = u_bit_scan(&mask); view = textures->views.views[i]; assert(view); @@ -326,13 +326,13 @@ si_decompress_sampler_color_textures(struct si_context *sctx, struct si_textures_info *textures) { unsigned i; - uint64_t mask = textures->compressed_colortex_mask; + unsigned mask = textures->compressed_colortex_mask; while (mask) { struct pipe_sampler_view *view; struct r600_texture *tex; - i = u_bit_scan64(&mask); + i = u_bit_scan(&mask); view = textures->views.views[i]; assert(view); @@ -352,13 +352,13 @@ si_decompress_image_color_textures(struct si_context *sctx, struct si_images_info *images) { unsigned i; - uint64_t mask = images->compressed_colortex_mask; + unsigned mask = images->compressed_colortex_mask; while (mask) { const struct pipe_image_view *view; struct r600_texture *tex; - i = u_bit_scan64(&mask); + i = u_bit_scan(&mask); view = &images->views[i]; assert(view->resource->target != PIPE_BUFFER); |