v3d: Split the creating of TEXTURE_SHADER_STATE into a helper function
authorNeil Roberts <nroberts@igalia.com>
Tue, 29 Sep 2020 15:22:37 +0000 (17:22 +0200)
committerNeil Roberts <nroberts@igalia.com>
Sun, 4 Oct 2020 13:29:54 +0000 (15:29 +0200)
commite2f037e96cb40be4412544551d10376ddc211bf3
tree989c5230ea47af350f7f45bafea64133756e8e87
parentd25504dae01eadf02a5364fc75bfcf490bc3831a
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>
src/gallium/drivers/v3d/v3d_context.c
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3dx_context.h
src/gallium/drivers/v3d/v3dx_state.c