diff options
author | Christian König <christian.koenig@amd.com> | 2014-12-03 09:53:24 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-12-03 18:26:53 -0500 |
commit | 6d2d13dd0e746a2bbdd2159abbdf603f0e37189e (patch) | |
tree | b4785d60b69a5d686a62967a6b18ec77e95eb65a /drivers/gpu/drm/radeon/r300.c | |
parent | 466be3386f1c14451a9a9c0a586a9df5f06eecdf (diff) |
drm/radeon: use pointers instead of indexes for CS chunks
Nobody is interested at which index the chunk is. What's needed is
a pointer to the chunk. Remove unused chunk_id field as well.
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 91d2442ca395..064ad5569cca 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -1283,7 +1283,7 @@ int r300_cs_parse(struct radeon_cs_parser *p) | |||
1283 | if (r) { | 1283 | if (r) { |
1284 | return r; | 1284 | return r; |
1285 | } | 1285 | } |
1286 | } while (p->idx < p->chunks[p->chunk_ib_idx].length_dw); | 1286 | } while (p->idx < p->chunk_ib->length_dw); |
1287 | return 0; | 1287 | return 0; |
1288 | } | 1288 | } |
1289 | 1289 | ||