[Mesa-dev] [PATCH 1/3] gallium/radeon: remove useless cast in radeon_add_to_buffer_list()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon Apr 17 10:03:02 UTC 2017
Actually Clang complains with this patch, it reports a compilation error
because 'usage' is an integer. I dropped the change.
On 04/14/2017 06:32 PM, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/gallium/drivers/radeon/r600_cs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_cs.h b/src/gallium/drivers/radeon/r600_cs.h
> index 28bdf15b8a..5e6cb1fe1c 100644
> --- a/src/gallium/drivers/radeon/r600_cs.h
> +++ b/src/gallium/drivers/radeon/r600_cs.h
> @@ -75,7 +75,7 @@ static inline unsigned radeon_add_to_buffer_list(struct r600_common_context *rct
> assert(usage);
> return rctx->ws->cs_add_buffer(
> ring->cs, rbo->buf,
> - (enum radeon_bo_usage)(usage | RADEON_USAGE_SYNCHRONIZED),
> + usage | RADEON_USAGE_SYNCHRONIZED,
> rbo->domains, priority) * 4;
> }
>
>
More information about the mesa-dev
mailing list