diff options
author | Jason Ekstrand <[email protected]> | 2016-03-31 15:27:30 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-08 15:58:49 -0700 |
commit | 2e827816fa10f6b5c9c13c5833e3af5db2621efa (patch) | |
tree | 6abb615080a1e096155993cdea37c4d1c2cc5cc7 /src/intel/vulkan | |
parent | b377c1d08ed16ca0abeabc86e8d651036eea3145 (diff) |
anv/blit2d: Add another passthrough varying to the VS
We need the VS to provide some setup data for other stages.
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_meta_blit2d.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c index 68ade55d8ea..b6e33c84fdd 100644 --- a/src/intel/vulkan/anv_meta_blit2d.c +++ b/src/intel/vulkan/anv_meta_blit2d.c @@ -568,6 +568,15 @@ build_nir_vertex_shader(void) tex_pos_out->data.interpolation = INTERP_QUALIFIER_SMOOTH; nir_copy_var(&b, tex_pos_out, tex_pos_in); + nir_variable *other_in = nir_variable_create(b.shader, nir_var_shader_in, + vec4, "a_other"); + other_in->data.location = VERT_ATTRIB_GENERIC2; + nir_variable *other_out = nir_variable_create(b.shader, nir_var_shader_out, + vec4, "v_other"); + other_out->data.location = VARYING_SLOT_VAR1; + other_out->data.interpolation = INTERP_QUALIFIER_FLAT; + nir_copy_var(&b, other_out, other_in); + return b.shader; } |