mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
radeonsi: silent a compiler warning
This fixes:
si_shader.c: In function ‘si_shader_dump_stats’:
si_shader.c:6704:31: warning: passing argument 1 of ‘si_get_max_workgroup_size’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
si_get_max_workgroup_size(shader);
^~~~~~
si_shader.c:5832:17: note: expected ‘struct si_shader *’ but argument is of type ‘const struct si_shader *’
static unsigned si_get_max_workgroup_size(struct si_shader *shader)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
820966f9bc
commit
169888b55e
1 changed files with 1 additions and 1 deletions
|
|
@ -5829,7 +5829,7 @@ static void declare_lds_as_pointer(struct si_shader_context *ctx)
|
|||
"lds");
|
||||
}
|
||||
|
||||
static unsigned si_get_max_workgroup_size(struct si_shader *shader)
|
||||
static unsigned si_get_max_workgroup_size(const struct si_shader *shader)
|
||||
{
|
||||
switch (shader->selector->type) {
|
||||
case PIPE_SHADER_TESS_CTRL:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue