radv: constify radv_pipeline in more radv_pipeline_generate_XXX() helpers

These functions should only emit registers and not change the pipeline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16603>
This commit is contained in:
Samuel Pitoiset 2022-05-18 10:32:48 +02:00 committed by Marge Bot
parent 583a4210e5
commit 3825c7202b
1 changed files with 2 additions and 2 deletions

View File

@ -6273,7 +6273,7 @@ radv_compute_db_shader_control(const struct radv_device *device,
static void
radv_pipeline_generate_fragment_shader(struct radeon_cmdbuf *ctx_cs, struct radeon_cmdbuf *cs,
struct radv_pipeline *pipeline)
const struct radv_pipeline *pipeline)
{
struct radv_shader *ps;
bool param_gen;
@ -6437,7 +6437,7 @@ radv_pipeline_generate_cliprect_rule(struct radeon_cmdbuf *ctx_cs,
}
static void
gfx10_pipeline_generate_ge_cntl(struct radeon_cmdbuf *ctx_cs, struct radv_pipeline *pipeline)
gfx10_pipeline_generate_ge_cntl(struct radeon_cmdbuf *ctx_cs, const struct radv_pipeline *pipeline)
{
bool break_wave_at_eoi = false;
unsigned primgroup_size;