radv/meta: add common shader vertex generation function
authorDave Airlie <airlied@redhat.com>
Tue, 18 Apr 2017 20:18:23 +0000 (06:18 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Apr 2017 00:02:39 +0000 (10:02 +1000)
commit399ebd2a84a133bd2ca3da388a059fd3bafe33f5
tree8ba992888186504fc252b2a3326a6f21a41c4da7
parent0e6d532d327a70b0ec6522754b3d8bee6312335f
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 <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta.c
src/amd/vulkan/radv_meta.h