From: Marek Olšák Date: Wed, 31 Dec 2014 00:03:30 +0000 (+0100) Subject: radeonsi: fix warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b77eaafcdc1b9f050d44d46608e542a9e593da3e;p=mesa.git radeonsi: fix warnings --- diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index cb17e54e0d7..d4133d8cbad 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -617,6 +617,8 @@ static int r600_get_compute_param(struct pipe_screen *screen, *images_supported = 0; } return sizeof(uint32_t); + case PIPE_COMPUTE_CAP_MAX_PRIVATE_SIZE: + break; /* unused */ } fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param); diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 922703445be..cb1ce5668a3 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -206,7 +206,7 @@ static void si_emit_descriptors(struct si_context *sctx, { struct radeon_winsys_cs *cs = sctx->b.rings.gfx.cs; uint64_t va_base; - int packet_start; + int packet_start = 0; int packet_size = 0; int last_index = desc->num_elements; /* point to a non-existing element */ unsigned dirty_mask = desc->dirty_mask;