diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-08-22 11:02:43 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-08-29 12:11:00 -0400 |
commit | 3b5ef597ec40603c368f65d3eb6d9818ed6a7bae (patch) | |
tree | 7b9534b6a1aec23969c814ad8bd795c52c1a5088 /drivers | |
parent | 305a3d204aae15eddf1988e50e33aee4119b710d (diff) |
drm/radeon: initialize tracked CS state
This should help catch uninitialized registers and reject commands
because of that.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cs.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 7799e283811f..8866937bd0b4 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -315,7 +315,14 @@ static void r600_cs_track_init(struct r600_cs_track *track) | |||
315 | track->cb_color_bo[i] = NULL; | 315 | track->cb_color_bo[i] = NULL; |
316 | track->cb_color_bo_offset[i] = 0xFFFFFFFF; | 316 | track->cb_color_bo_offset[i] = 0xFFFFFFFF; |
317 | track->cb_color_bo_mc[i] = 0xFFFFFFFF; | 317 | track->cb_color_bo_mc[i] = 0xFFFFFFFF; |
318 | } | 318 | track->cb_color_frag_bo[i] = NULL; |
319 | track->cb_color_frag_offset[i] = 0xFFFFFFFF; | ||
320 | track->cb_color_tile_bo[i] = NULL; | ||
321 | track->cb_color_tile_offset[i] = 0xFFFFFFFF; | ||
322 | track->cb_color_mask[i] = 0xFFFFFFFF; | ||
323 | } | ||
324 | track->nsamples = 16; | ||
325 | track->log_nsamples = 4; | ||
319 | track->cb_target_mask = 0xFFFFFFFF; | 326 | track->cb_target_mask = 0xFFFFFFFF; |
320 | track->cb_shader_mask = 0xFFFFFFFF; | 327 | track->cb_shader_mask = 0xFFFFFFFF; |
321 | track->cb_dirty = true; | 328 | track->cb_dirty = true; |