diff options
author | Dave Airlie <[email protected]> | 2017-04-19 06:18:23 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-04-19 10:02:39 +1000 |
commit | 399ebd2a84a133bd2ca3da388a059fd3bafe33f5 (patch) | |
tree | 8ba992888186504fc252b2a3326a6f21a41c4da7 /src/amd/vulkan/radv_meta.h | |
parent | 0e6d532d327a70b0ec6522754b3d8bee6312335f (diff) |
radv/meta: add common shader vertex generation function
Instead of passing in the same 1.0, -1.0 combinations via
vertex buffers, we can just use vertex id to have the vertex
shader build them. This function introduces the generator
code needed, later patches will use this.
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta.h b/src/amd/vulkan/radv_meta.h index 8702ca4dbbd..6cad94c89e0 100644 --- a/src/amd/vulkan/radv_meta.h +++ b/src/amd/vulkan/radv_meta.h @@ -221,6 +221,12 @@ void radv_meta_resolve_compute_image(struct radv_cmd_buffer *cmd_buffer, void radv_blit_to_prime_linear(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, struct radv_image *linear_image); + +/* common nir builder helpers */ +#include "nir_builder.h" + +nir_ssa_def *radv_meta_gen_rect_vertices(nir_builder *vs_b); + #ifdef __cplusplus } #endif |