drm/radeon: make the ib an inline object
No need to malloc it any more. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Christian König <deathsimple@vodafone.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

committed by
Dave Airlie

parent
f237750f00
commit
f2e3922106
@@ -1057,7 +1057,7 @@ static int evergreen_cs_packet_parse_vline(struct radeon_cs_parser *p)
|
||||
uint32_t header, h_idx, reg, wait_reg_mem_info;
|
||||
volatile uint32_t *ib;
|
||||
|
||||
ib = p->ib->ptr;
|
||||
ib = p->ib.ptr;
|
||||
|
||||
/* parse the WAIT_REG_MEM */
|
||||
r = evergreen_cs_packet_parse(p, &wait_reg_mem, p->idx);
|
||||
@@ -1215,7 +1215,7 @@ static int evergreen_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx)
|
||||
if (!(evergreen_reg_safe_bm[i] & m))
|
||||
return 0;
|
||||
}
|
||||
ib = p->ib->ptr;
|
||||
ib = p->ib.ptr;
|
||||
switch (reg) {
|
||||
/* force following reg to 0 in an attempt to disable out buffer
|
||||
* which will need us to better understand how it works to perform
|
||||
@@ -1896,7 +1896,7 @@ static int evergreen_packet3_check(struct radeon_cs_parser *p,
|
||||
u32 idx_value;
|
||||
|
||||
track = (struct evergreen_cs_track *)p->track;
|
||||
ib = p->ib->ptr;
|
||||
ib = p->ib.ptr;
|
||||
idx = pkt->idx + 1;
|
||||
idx_value = radeon_get_ib_value(p, idx);
|
||||
|
||||
@@ -2610,8 +2610,8 @@ int evergreen_cs_parse(struct radeon_cs_parser *p)
|
||||
}
|
||||
} while (p->idx < p->chunks[p->chunk_ib_idx].length_dw);
|
||||
#if 0
|
||||
for (r = 0; r < p->ib->length_dw; r++) {
|
||||
printk(KERN_INFO "%05d 0x%08X\n", r, p->ib->ptr[r]);
|
||||
for (r = 0; r < p->ib.length_dw; r++) {
|
||||
printk(KERN_INFO "%05d 0x%08X\n", r, p->ib.ptr[r]);
|
||||
mdelay(1);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user