panvk: Constify the shader pointers in the graphics state

The command buffer logic is not supposed to modify these objects.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29451>
This commit is contained in:
Boris Brezillon
2024-06-18 09:23:55 +02:00
committed by Marge Bot
parent 495b718b3f
commit c912f80a08
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ struct panvk_cmd_graphics_state {
bool linked;
struct {
struct panvk_shader *shader;
const struct panvk_shader *shader;
mali_ptr rsd;
#if PAN_ARCH <= 7
struct panvk_shader_desc_state desc;
@@ -104,7 +104,7 @@ struct panvk_cmd_graphics_state {
} fs;
struct {
struct panvk_shader *shader;
const struct panvk_shader *shader;
mali_ptr attribs;
mali_ptr attrib_bufs;
#if PAN_ARCH <= 7
+2 -2
View File
@@ -156,8 +156,8 @@ panvk_shader_get_dev_addr(const struct panvk_shader *shader)
}
void panvk_per_arch(link_shaders)(struct panvk_pool *desc_pool,
struct panvk_shader *vs,
struct panvk_shader *fs,
const struct panvk_shader *vs,
const struct panvk_shader *fs,
struct panvk_shader_link *link);
static inline void
+2 -1
View File
@@ -1049,7 +1049,8 @@ emit_varying_attrs(struct panvk_pool *desc_pool,
void
panvk_per_arch(link_shaders)(struct panvk_pool *desc_pool,
struct panvk_shader *vs, struct panvk_shader *fs,
const struct panvk_shader *vs,
const struct panvk_shader *fs,
struct panvk_shader_link *link)
{
BITSET_DECLARE(active_attrs, VARYING_SLOT_MAX) = {0};