diff options
author | Iago Toral Quiroga <itoral@igalia.com> | 2020-01-29 16:35:39 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-10-13 21:21:27 +0000 |
commit | 55acd9f1ea4d614f47c869883b698115b351cad0 (patch) | |
tree | 807822d5b0878c857e09ae4d2ba47f5382b8c760 /src/broadcom/vulkan/v3dv_private.h | |
parent | bb6e9d26dcc812185057db4601cca094a29972e5 (diff) |
v3dv: implement stencil testing
This works on combined depth/stencil formats only, separate stencil
is not supported yet.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
Diffstat (limited to 'src/broadcom/vulkan/v3dv_private.h')
-rw-r--r-- | src/broadcom/vulkan/v3dv_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/broadcom/vulkan/v3dv_private.h b/src/broadcom/vulkan/v3dv_private.h index 0cd0c528ccc..22ab9a9c4f2 100644 --- a/src/broadcom/vulkan/v3dv_private.h +++ b/src/broadcom/vulkan/v3dv_private.h @@ -688,6 +688,10 @@ struct v3dv_pipeline { struct vpm_config vpm_cfg; struct vpm_config vpm_cfg_bin; + + /* If the pipeline should emit any of the stencil configuration packets */ + bool emit_stencil_cfg[2]; + /* Packets prepacked during pipeline creation */ uint8_t cfg_bits[cl_packet_length(CFG_BITS)]; @@ -695,6 +699,7 @@ struct v3dv_pipeline { uint8_t vcm_cache_size[cl_packet_length(VCM_CACHE_SIZE)]; uint8_t vertex_attrs[cl_packet_length(GL_SHADER_STATE_ATTRIBUTE_RECORD) * (MAX_VBS / 4)]; + uint8_t stencil_cfg[2][cl_packet_length(STENCIL_CFG)]; }; uint32_t v3dv_physical_device_api_version(struct v3dv_physical_device *dev); |