diff options
author | Jonathan Marek <[email protected]> | 2019-09-26 00:31:56 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-09-26 17:18:13 -0400 |
commit | cb14f56b4fdfde105ee08b44e4e3d2cfb38d59ac (patch) | |
tree | 4991c66db3ee8d89471bd2a3b06f24bc8176a07f /src/freedreno/vulkan/tu_private.h | |
parent | ee4fa15a86f0bb4d80261f149fa51ccbaddb6cb1 (diff) |
turnip: add some shader information in pipeline state
This information is needed by texture/uniform descriptors.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r-- | src/freedreno/vulkan/tu_private.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index c93d7fa6357..63871732f64 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -1072,6 +1072,20 @@ tu_shader_compile(struct tu_device *dev, const struct tu_shader_compile_options *options, const VkAllocationCallbacks *alloc); +struct tu_program_descriptor_linkage +{ + struct ir3_ubo_analysis_state ubo_state; + + uint32_t constlen; + + uint32_t offset_ubo; /* ubo pointers const offset */ + uint32_t num_ubo; /* number of ubo pointers */ + + struct tu_descriptor_map texture_map; + struct tu_descriptor_map sampler_map; + struct tu_descriptor_map ubo_map; +}; + struct tu_pipeline { struct tu_cs cs; @@ -1088,6 +1102,8 @@ struct tu_pipeline struct tu_bo binary_bo; struct tu_cs_entry state_ib; struct tu_cs_entry binning_state_ib; + + struct tu_program_descriptor_linkage link[MESA_SHADER_STAGES]; } program; struct |