summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-14 16:39:58 -0700
committerJason Ekstrand <[email protected]>2015-10-14 18:38:33 -0700
commit9c9b7d79c8a54b4f61e52f64aa504b0d01529dd7 (patch)
treed6f61f8aedb5188f0098e4db345dea06cad7081b /src/vulkan/anv_nir.h
parentde608153fb5358bad38ae372f6c66ad3d6708f00 (diff)
anv/nir: Add a pass for applying a applying a pipeline layout to a shader
This new pass lowers the _vk intrinsics which take a (set, binding, index) tripple to the single-index non-vk intrinsics based on the pipeline layout.
Diffstat (limited to 'src/vulkan/anv_nir.h')
-rw-r--r--src/vulkan/anv_nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/anv_nir.h b/src/vulkan/anv_nir.h
index 1fd3484e059..af95e3a8849 100644
--- a/src/vulkan/anv_nir.h
+++ b/src/vulkan/anv_nir.h
@@ -40,6 +40,8 @@ anv_vk_shader_stage_for_mesa_stage(gl_shader_stage stage)
void anv_nir_apply_dynamic_offsets(struct anv_pipeline *pipeline,
nir_shader *shader,
struct brw_stage_prog_data *prog_data);
+bool anv_nir_apply_pipeline_layout(nir_shader *shader,
+ const struct anv_pipeline_layout *layout);
#ifdef __cplusplus
}