summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_info.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-02-01 11:32:32 +0100
committerSamuel Pitoiset <[email protected]>2018-02-07 12:42:07 +0100
commit1c57a6da5e38c18926eca22b96901e4640ec430f (patch)
tree53298380429d2a45cd5f24b704fa3a7c3bd680ec /src/amd/common/ac_shader_info.h
parentf474b19875a7c51ced6bb986e5733379b2780dcf (diff)
ac/shader: scan vertex inputs usage mask
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_info.h')
-rw-r--r--src/amd/common/ac_shader_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_shader_info.h b/src/amd/common/ac_shader_info.h
index 59b749576aa..380c06a8551 100644
--- a/src/amd/common/ac_shader_info.h
+++ b/src/amd/common/ac_shader_info.h
@@ -24,6 +24,8 @@
#ifndef AC_SHADER_INFO_H
#define AC_SHADER_INFO_H
+#include "compiler/shader_enums.h"
+
struct nir_shader;
struct ac_nir_compiler_options;
@@ -34,6 +36,7 @@ struct ac_shader_info {
bool uses_invocation_id;
bool uses_prim_id;
struct {
+ uint8_t input_usage_mask[VERT_ATTRIB_MAX];
bool has_vertex_buffers; /* needs vertex buffers and base/start */
bool needs_draw_id;
bool needs_instance_id;