From b77eaafcdc1b9f050d44d46608e542a9e593da3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 31 Dec 2014 01:03:30 +0100 Subject: [PATCH] radeonsi: fix warnings --- src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++ src/gallium/drivers/radeonsi/si_descriptors.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2