radv: Pass logical device to si_emit_graphics

We'll need this in order to retrieve the va of a bo for a future ext.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4728>
This commit is contained in:
Joshua Ashton 2020-04-24 11:13:51 +01:00 committed by Marge Bot
parent bf542484ea
commit 0b44582394
3 changed files with 6 additions and 5 deletions

View file

@ -3702,8 +3702,7 @@ radv_init_graphics_state(struct radeon_cmdbuf *cs, struct radv_queue *queue)
radv_cs_add_buffer(device->ws, cs, device->gfx_init);
} else {
struct radv_physical_device *physical_device = device->physical_device;
si_emit_graphics(physical_device, cs);
si_emit_graphics(device, cs);
}
}

View file

@ -1401,7 +1401,7 @@ struct radv_image_view;
bool radv_cmd_buffer_uses_mec(struct radv_cmd_buffer *cmd_buffer);
void si_emit_graphics(struct radv_physical_device *physical_device,
void si_emit_graphics(struct radv_device *device,
struct radeon_cmdbuf *cs);
void si_emit_compute(struct radv_physical_device *physical_device,
struct radeon_cmdbuf *cs);

View file

@ -155,9 +155,11 @@ si_set_raster_config(struct radv_physical_device *physical_device,
}
void
si_emit_graphics(struct radv_physical_device *physical_device,
si_emit_graphics(struct radv_device *device,
struct radeon_cmdbuf *cs)
{
struct radv_physical_device *physical_device = device->physical_device;
bool has_clear_state = physical_device->rad_info.has_clear_state;
int i;
@ -500,7 +502,7 @@ cik_create_gfx_config(struct radv_device *device)
if (!cs)
return;
si_emit_graphics(device->physical_device, cs);
si_emit_graphics(device, cs);
while (cs->cdw & 7) {
if (device->physical_device->rad_info.gfx_ib_pad_with_type2)