diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-02-16 11:28:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-17 23:20:58 -0500 |
commit | 71b10d8762b2a548c4ac2e4461b46d9b205a5c77 (patch) | |
tree | c5ec57ca9cf8a9f7d15be5c84b3242e50e234b8b /drivers/gpu/drm/radeon/r600_cs.c | |
parent | 6cb8e1f71c407930f0f07feceeea1da73881038b (diff) |
drm/radeon/r600: fix warnings in CS checker
drivers/gpu/drm/radeon/r600_cs.c: In function ‘r600_cs_track_check’:
drivers/gpu/drm/radeon/r600_cs.c:166: warning: ‘bpe’ may be used uninitialized in this function
drivers/gpu/drm/radeon/r600_cs.c:166: note: ‘bpe’ was declared here
drivers/gpu/drm/radeon/r600_cs.c: In function ‘r600_cs_parse’:
drivers/gpu/drm/radeon/r600_cs.c:938: warning: ‘bpe’ may be used uninitialized in this function
drivers/gpu/drm/radeon/r600_cs.c:938: note: ‘bpe’ was declared here
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 00e69c585fbf..cd2c63bce501 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -163,7 +163,7 @@ static void r600_cs_track_init(struct r600_cs_track *track) | |||
163 | static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) | 163 | static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) |
164 | { | 164 | { |
165 | struct r600_cs_track *track = p->track; | 165 | struct r600_cs_track *track = p->track; |
166 | u32 bpe, pitch, slice_tile_max, size, tmp, height; | 166 | u32 bpe = 0, pitch, slice_tile_max, size, tmp, height; |
167 | volatile u32 *ib = p->ib->ptr; | 167 | volatile u32 *ib = p->ib->ptr; |
168 | 168 | ||
169 | if (G_0280A0_TILE_MODE(track->cb_color_info[i])) { | 169 | if (G_0280A0_TILE_MODE(track->cb_color_info[i])) { |
@@ -935,7 +935,7 @@ static inline int r600_check_texture_resource(struct radeon_cs_parser *p, u32 i | |||
935 | struct radeon_bo *texture, | 935 | struct radeon_bo *texture, |
936 | struct radeon_bo *mipmap) | 936 | struct radeon_bo *mipmap) |
937 | { | 937 | { |
938 | u32 nfaces, nlevels, blevel, w0, h0, d0, bpe; | 938 | u32 nfaces, nlevels, blevel, w0, h0, d0, bpe = 0; |
939 | u32 word0, word1, l0_size, mipmap_size; | 939 | u32 word0, word1, l0_size, mipmap_size; |
940 | 940 | ||
941 | /* on legacy kernel we don't perform advanced check */ | 941 | /* on legacy kernel we don't perform advanced check */ |