v3d: use the state uploader for the image view texture shader state

From the documentation, the state uploader should be used inside the
driver for long-term state inside buffers, while the stream uploader
should be used by Gallium's internals. Considering that the image view
texture shader state can be considered long-lived state data, use
`state_uploader` instead of `uploader` for consistency.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40496>
This commit is contained in:
Maíra Canal 2026-03-22 16:50:04 -03:00 committed by Marge Bot
parent b76678cddd
commit 751e0d26ec

View file

@ -1365,11 +1365,9 @@ v3d_create_image_view_texture_shader_state(struct v3d_context *v3d,
struct v3d_image_view *iview = &so->si[img];
void *map;
u_upload_alloc_ref(v3d->uploader, 0, cl_packet_length(TEXTURE_SHADER_STATE),
32,
&iview->tex_state_offset,
&iview->tex_state,
&map);
u_upload_alloc_ref(v3d->state_uploader, 0,
cl_packet_length(TEXTURE_SHADER_STATE), 32,
&iview->tex_state_offset, &iview->tex_state, &map);
struct pipe_resource *prsc = iview->base.resource;