summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-05-03 04:23:04 +0100
committerDave Airlie <[email protected]>2017-05-07 23:41:38 +0100
commitff478661075800121a815da7d7929112e6dab9de (patch)
treee2036cb45bbbfbd5516fcd016f78212badc2e161 /src/amd/vulkan/radv_meta.h
parent588185eb6b76bf31fedbfcbf32fc3b2035b2d541 (diff)
radv/meta: split out core part of resolve shader
I want to reuse the same code for the fragment shader version of the resolve shaders. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta.h')
-rw-r--r--src/amd/vulkan/radv_meta.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta.h b/src/amd/vulkan/radv_meta.h
index 76d2da05dc5..c4311c3c3d1 100644
--- a/src/amd/vulkan/radv_meta.h
+++ b/src/amd/vulkan/radv_meta.h
@@ -229,6 +229,14 @@ nir_ssa_def *radv_meta_gen_rect_vertices(nir_builder *vs_b);
nir_ssa_def *radv_meta_gen_rect_vertices_comp2(nir_builder *vs_b, nir_ssa_def *comp2);
nir_shader *radv_meta_build_nir_vs_generate_vertices(void);
nir_shader *radv_meta_build_nir_fs_noop(void);
+
+void radv_meta_build_resolve_shader_core(nir_builder *b,
+ bool is_integer,
+ bool is_srgb,
+ int samples,
+ nir_variable *input_img,
+ nir_variable *color,
+ nir_ssa_def *img_coord);
#ifdef __cplusplus
}
#endif