summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-12-31 01:03:30 +0100
committerMarek Olšák <[email protected]>2015-01-01 14:42:32 +0100
commitb77eaafcdc1b9f050d44d46608e542a9e593da3e (patch)
treeeeae464ad070aa541522c3bb33337899cfccc565 /src
parentc633528cbac007a73a066f269b3c9a25daf1e21a (diff)
radeonsi: fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c2
-rw-r--r--src/gallium/drivers/radeonsi/si_descriptors.c2
2 files changed, 3 insertions, 1 deletions
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;