diff options
author | Neil Roberts <nroberts@igalia.com> | 2020-09-29 17:22:37 +0200 |
---|---|---|
committer | Neil Roberts <nroberts@igalia.com> | 2020-10-04 15:29:54 +0200 |
commit | e2f037e96cb40be4412544551d10376ddc211bf3 (patch) | |
tree | 989c5230ea47af350f7f45bafea64133756e8e87 /src/gallium/drivers/v3d/v3d_context.h | |
parent | d25504dae01eadf02a5364fc75bfcf490bc3831a (diff) |
v3d: Split the creating of TEXTURE_SHADER_STATE into a helper function
This extracts the part of v3d_create_sampler_view that creates and fills
in the buffer for the TEXTURE_SHADER_STATE record into a helper
function. This will be used in a later patch to update the record when
the information changes.
v2: Also put the part that creates the buffer into the helper function
so that it won’t override the contents of an inflight buffer.
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6914>
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index baf58d924ea..05b9ed8fc1e 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -706,6 +706,9 @@ float v3d_get_real_line_width(struct v3d_context *v3d); void v3d_flag_dirty_sampler_state(struct v3d_context *v3d, enum pipe_shader_type shader); +void v3d_create_texture_shader_state_bo(struct v3d_context *v3d, + struct v3d_sampler_view *so); + #ifdef v3dX # include "v3dx_context.h" #else |