From 180c1b924e1ed3a2918fad9c5cbb653524de8233 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 16 Aug 2017 09:09:56 +0200 Subject: ac/nir: Add shader support for multiviews. It uses an user SGPR to pass the view index to the shaders, except for the fragment shader where we use layer=view (which comes in handy when we want to do the NV ext that allows us to execute pre-FS stages once instead of per view). Reviewed-by: Dave Airlie --- src/amd/common/ac_shader_info.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/amd/common/ac_shader_info.h') diff --git a/src/amd/common/ac_shader_info.h b/src/amd/common/ac_shader_info.h index 886b5e84b57..c1d36a667ee 100644 --- a/src/amd/common/ac_shader_info.h +++ b/src/amd/common/ac_shader_info.h @@ -30,6 +30,7 @@ struct ac_nir_compiler_options; struct ac_shader_info { bool needs_push_constants; uint32_t desc_set_used_mask; + bool needs_multiview_view_index; struct { bool has_vertex_buffers; /* needs vertex buffers and base/start */ bool needs_draw_id; -- cgit v1.2.3