summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_info.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-08-16 09:09:56 +0200
committerBas Nieuwenhuizen <[email protected]>2017-08-24 19:20:47 +0200
commit180c1b924e1ed3a2918fad9c5cbb653524de8233 (patch)
tree78cd87baa56ed17fcaa11ceb96aed74c301aed18 /src/amd/common/ac_shader_info.h
parent2e86f6b2597df85bc106780763ead0b20b3bc8e4 (diff)
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 <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_info.h')
-rw-r--r--src/amd/common/ac_shader_info.h1
1 files changed, 1 insertions, 0 deletions
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;