summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/si_cmd_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/vulkan/si_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/si_cmd_buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index b94c1f10797..79a2455f921 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -171,9 +171,9 @@ si_write_harvested_raster_configs(struct radv_physical_device *physical_device,
}
void
-si_init_compute(struct radv_physical_device *physical_device,
- struct radv_cmd_buffer *cmd_buffer)
+si_init_compute(struct radv_cmd_buffer *cmd_buffer)
{
+ struct radv_physical_device *physical_device = cmd_buffer->device->physical_device;
struct radeon_winsys_cs *cs = cmd_buffer->cs;
radeon_set_sh_reg_seq(cs, R_00B810_COMPUTE_START_X, 3);
radeon_emit(cs, 0);
@@ -211,9 +211,9 @@ si_init_compute(struct radv_physical_device *physical_device,
}
-void si_init_config(struct radv_physical_device *physical_device,
- struct radv_cmd_buffer *cmd_buffer)
+void si_init_config(struct radv_cmd_buffer *cmd_buffer)
{
+ struct radv_physical_device *physical_device = cmd_buffer->device->physical_device;
unsigned num_rb = MIN2(physical_device->rad_info.num_render_backends, 16);
unsigned rb_mask = physical_device->rad_info.enabled_rb_mask;
unsigned raster_config, raster_config_1;
@@ -420,7 +420,7 @@ void si_init_config(struct radv_physical_device *physical_device,
if (physical_device->rad_info.family == CHIP_STONEY)
radeon_set_context_reg(cs, R_028C40_PA_SC_SHADER_CONTROL, 0);
- si_init_compute(physical_device, cmd_buffer);
+ si_init_compute(cmd_buffer);
}
static void