v3dv: partial prepack of the gl_shader_state_record
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 9 Jan 2020 12:54:22 +0000 (13:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:26 +0000 (21:21 +0000)
commit5226928557e41daa5a0c66c7f7feb45647d567ea
treef262e35b67bd8df22e58826257fe1c4402121177
parent0e49c6237ffeeb51fb92ae4025fbb87fd6c59684
v3dv: partial prepack of the gl_shader_state_record

We can't prepack all the record, as addresses need the job, and
uniforms depend on dynamic value.

Also due cl_emit_with_prepacked and v3dv_pack asserting correct
values, we need to define two values twice, that lead to move
vpm_config to the pipeline. In any case, the latter will be useful
when we start to prepack more stuff.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cl.h
src/broadcom/vulkan/v3dv_cmd_buffer.c
src/broadcom/vulkan/v3dv_pipeline.c
src/broadcom/vulkan/v3dv_private.h