summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_info.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-26 14:36:47 +0200
committerNicolai Hähnle <[email protected]>2017-07-31 14:55:39 +0200
commitba06e8bbe8c75ceeaf12dbddff40b2ad4124fe4b (patch)
tree7062ba0fa5a4ebcf750ec7ce3bd7da6993d8ba14 /src/amd/common/ac_shader_info.h
parentbe0488a1736d1f45d473d4f0c16243897a1d8491 (diff)
ac/nir: use shader_info pass to determine whether instance_id is used
This improves the separation of ABI and NIR translation. Reviewed-by: Marek Olšák <[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 5f03e79a83d..5bc16cc9d02 100644
--- a/src/amd/common/ac_shader_info.h
+++ b/src/amd/common/ac_shader_info.h
@@ -33,6 +33,7 @@ struct ac_shader_info {
struct {
bool has_vertex_buffers; /* needs vertex buffers and base/start */
bool needs_draw_id;
+ bool needs_instance_id;
} vs;
struct {
bool needs_sample_positions;