summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-29 22:24:54 -0700
committerJason Ekstrand <[email protected]>2015-10-29 22:26:36 -0700
commit3883728730f293b763a5641560375b18d4f97782 (patch)
treec4f5524a0eee4662ad0b7abb8dfd3a40c304fb3e /src/vulkan/anv_nir.h
parent1f2624e6dd75860156a0385c3ccfb351a9206cec (diff)
anv: Add better push constant support
What we had before was kind of a hack where we made certain untrue assumptions about the incoming data. This new support, while it still doesn't support indirects properly (that will come), at least pulls the offsets and strides from SPIR-V like it's supposed to.
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 af95e3a8849..b164ae581e1 100644
--- a/src/vulkan/anv_nir.h
+++ b/src/vulkan/anv_nir.h
@@ -37,6 +37,8 @@ anv_vk_shader_stage_for_mesa_stage(gl_shader_stage stage)
return (VkShaderStage)(int)stage;
}
+void anv_nir_lower_push_constants(nir_shader *shader, bool is_scalar);
+
void anv_nir_apply_dynamic_offsets(struct anv_pipeline *pipeline,
nir_shader *shader,
struct brw_stage_prog_data *prog_data);