mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-03 08:58:16 +02:00
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:
parent
b76678cddd
commit
751e0d26ec
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue