radeonsi: fix warnings
authorMarek Olšák <marek.olsak@amd.com>
Wed, 31 Dec 2014 00:03:30 +0000 (01:03 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 1 Jan 2015 13:42:32 +0000 (14:42 +0100)
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_descriptors.c

index cb17e54e0d7abf0d5f4017ca90ee773c64680168..d4133d8cbad259514911281c55fe62ad86c277ab 100644 (file)
@@ -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);
index 922703445be2fb71bf292a6c6e231c891f5f1bb1..cb1ce5668a3bd5dcb9815d7f1ef2da5911554872 100644 (file)
@@ -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;