blob: 3bb6779982ba2fd3cf0119f67264d81f5451aaa1 [file] [log] [blame]
Timothy Arceri094fe3a2016-10-13 10:46:11 +11001/*
2 * Copyright © 2016 Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
22 *
23 */
24
25#ifndef SHADER_INFO_H
26#define SHADER_INFO_H
27
Timothy Arceri29ade712016-11-16 14:02:11 +110028#include "shader_enums.h"
Jordan Justenebd9e782017-10-27 01:04:53 -070029#include <stdint.h>
Timothy Arceri29ade712016-11-16 14:02:11 +110030
Timothy Arceri094fe3a2016-10-13 10:46:11 +110031#ifdef __cplusplus
32extern "C" {
33#endif
34
Marek Olšák3f1b35a2020-09-29 17:34:28 -040035#define MAX_INLINABLE_UNIFORMS 4
36
Alejandro Piñeiro25e56b22017-12-07 09:38:41 +010037struct spirv_supported_capabilities {
Rob Clarkfa737042018-02-26 18:01:02 -050038 bool address;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060039 bool atomic_storage;
Caio Marcelo de Oliveira Filho1a83c9a2019-06-07 23:08:04 -070040 bool demote_to_helper_invocation;
Caio Marcelo de Oliveira Filhobd735312019-03-28 10:23:02 -070041 bool derivative_group;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060042 bool descriptor_array_dynamic_indexing;
Juan A. Suarez Romerobbbe00a2019-04-29 17:02:45 +020043 bool descriptor_array_non_uniform_indexing;
44 bool descriptor_indexing;
Jason Ekstrandff9db1a2017-09-21 15:51:55 -070045 bool device_group;
Alejandro Piñeiro25e56b22017-12-07 09:38:41 +010046 bool draw_parameters;
Jason Ekstrand84086b62020-05-19 10:19:55 -050047 bool float32_atomic_add;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060048 bool float64;
Jason Ekstrand84086b62020-05-19 10:19:55 -050049 bool float64_atomic_add;
Jason Ekstrand51768052019-05-17 11:32:10 -050050 bool fragment_shader_sample_interlock;
51 bool fragment_shader_pixel_interlock;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060052 bool geometry_streams;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060053 bool image_ms_array;
Alejandro Piñeiro25e56b22017-12-07 09:38:41 +010054 bool image_read_without_format;
55 bool image_write_without_format;
Rob Clarkfa737042018-02-26 18:01:02 -050056 bool int8;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060057 bool int16;
Alejandro Piñeiro25e56b22017-12-07 09:38:41 +010058 bool int64;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060059 bool int64_atomics;
Ian Romanick4fcddb52018-09-24 06:46:48 -070060 bool integer_functions2;
Rob Clarkfa737042018-02-26 18:01:02 -050061 bool kernel;
Jesse Nataliede36b5b2020-04-13 08:05:13 -070062 bool kernel_image;
Jesse Natalieb778e7b2020-05-01 10:47:58 -070063 bool literal_sampler;
Jason Ekstrandcaeffe72018-10-02 21:15:47 -050064 bool min_lod;
Alejandro Piñeiro25e56b22017-12-07 09:38:41 +010065 bool multiview;
Jason Ekstrand86e5f762019-01-19 10:23:28 -060066 bool physical_storage_buffer_address;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060067 bool post_depth_coverage;
68 bool runtime_descriptor_array;
Samuel Iglesias Gonsálvez420ad0a2018-05-31 11:50:54 +020069 bool float_controls;
Caio Marcelo de Oliveira Filhof20cea02019-04-19 12:15:16 -070070 bool shader_clock;
Caio Marcelo de Oliveira Filhoc1780852018-03-05 13:58:11 -080071 bool shader_viewport_index_layer;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060072 bool stencil_export;
73 bool storage_8bit;
74 bool storage_16bit;
75 bool storage_image_ms;
Jason Ekstrand57bff0a2017-08-29 20:10:35 -070076 bool subgroup_arithmetic;
Jason Ekstrand9812fce2017-08-22 16:53:05 -070077 bool subgroup_ballot;
Jason Ekstrandadc07772017-04-28 04:45:50 -070078 bool subgroup_basic;
Jason Ekstrandb3a5b0f2017-08-29 10:21:31 -070079 bool subgroup_quad;
Jason Ekstrand8256ee32017-08-29 09:44:44 -070080 bool subgroup_shuffle;
Jason Ekstrandd792f3d2017-08-24 11:01:22 -070081 bool subgroup_vote;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060082 bool tessellation;
Alejandro Piñeirod6902752018-07-13 13:34:08 +020083 bool transform_feedback;
Jason Ekstrand05d72d62019-01-07 10:28:23 -060084 bool variable_pointers;
Caio Marcelo de Oliveira Filhoc0220432019-09-10 12:38:00 -070085 bool vk_memory_model;
86 bool vk_memory_model_device_scope;
Samuel Pitoisetbbe8feb2019-04-12 08:53:35 +020087 bool float16;
Samuel Pitoisetdea29b32019-05-16 12:25:40 +020088 bool amd_fragment_mask;
Daniel Schürmann7a858f22018-05-09 20:41:23 +020089 bool amd_gcn_shader;
90 bool amd_shader_ballot;
91 bool amd_trinary_minmax;
Samuel Pitoiset37bfd852020-01-03 11:49:24 +010092 bool amd_image_read_write_lod;
Samuel Pitoiset531a26d2020-01-24 10:55:55 +010093 bool amd_shader_explicit_vertex_parameter;
Samuel Pitoisetdd39bf52020-05-19 14:50:57 +020094 bool amd_image_gather_bias_lod;
Daniel Schürmann68a6a3b2018-02-23 13:54:59 +010095};
96
Timothy Arceri094fe3a2016-10-13 10:46:11 +110097typedef struct shader_info {
98 const char *name;
99
100 /* Descriptive name provided by the client; may be NULL */
101 const char *label;
102
Jesse Natalie93db59e2020-08-26 14:22:07 -0700103 /* Shader is internal, and should be ignored by things like NIR_PRINT */
104 bool internal;
105
Timothy Arceri3ea3f752017-08-23 09:10:27 +1000106 /** The shader stage, such as MESA_SHADER_VERTEX. */
Marek Olšák84a1a252019-11-05 19:10:09 -0500107 gl_shader_stage stage:8;
Timothy Arceri3ea3f752017-08-23 09:10:27 +1000108
Timothy Arceri2ca5d952018-02-26 20:40:38 +1100109 /** The shader stage in a non SSO linked program that follows this stage,
110 * such as MESA_SHADER_FRAGMENT.
111 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500112 gl_shader_stage next_stage:8;
Timothy Arceri2ca5d952018-02-26 20:40:38 +1100113
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100114 /* Number of textures used by this shader */
Marek Olšák84a1a252019-11-05 19:10:09 -0500115 uint8_t num_textures;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100116 /* Number of uniform buffers used by this shader */
Marek Olšák84a1a252019-11-05 19:10:09 -0500117 uint8_t num_ubos;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100118 /* Number of atomic buffers used by this shader */
Marek Olšák84a1a252019-11-05 19:10:09 -0500119 uint8_t num_abos;
Eric Anholt7558b5d2019-12-30 12:01:25 -0800120 /* Number of shader storage buffers (max .driver_location + 1) used by this
121 * shader. In the case of nir_lower_atomics_to_ssbo being used, this will
122 * be the number of actual SSBOs in gl_program->info, and the lowered SSBOs
123 * and atomic counters in nir_shader->info.
124 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500125 uint8_t num_ssbos;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100126 /* Number of images used by this shader */
Marek Olšák84a1a252019-11-05 19:10:09 -0500127 uint8_t num_images;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100128
129 /* Which inputs are actually read */
130 uint64_t inputs_read;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100131 /* Which outputs are actually written */
132 uint64_t outputs_written;
133 /* Which outputs are actually read */
134 uint64_t outputs_read;
135 /* Which system values are actually read */
136 uint64_t system_values_read;
137
138 /* Which patch inputs are actually read */
139 uint32_t patch_inputs_read;
140 /* Which patch outputs are actually written */
141 uint32_t patch_outputs_written;
Dave Airlie33dca362017-11-14 15:10:44 +1000142 /* Which patch outputs are read */
143 uint32_t patch_outputs_read;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100144
Timur Kristóff1dd81a2020-03-13 10:14:37 +0100145 /* Which inputs are read indirectly (subset of inputs_read) */
146 uint64_t inputs_read_indirectly;
147 /* Which outputs are read or written indirectly */
148 uint64_t outputs_accessed_indirectly;
149 /* Which patch inputs are read indirectly (subset of patch_inputs_read) */
150 uint64_t patch_inputs_read_indirectly;
151 /* Which patch outputs are read or written indirectly */
152 uint64_t patch_outputs_accessed_indirectly;
153
Kenneth Graunkef5c7df42019-01-13 10:39:41 -0800154 /** Bitfield of which textures are used */
155 uint32_t textures_used;
156
Kenneth Graunkefbf4c292017-09-09 00:19:57 -0700157 /** Bitfield of which textures are used by texelFetch() */
158 uint32_t textures_used_by_txf;
159
Tapani Pälli5910c932020-02-19 08:33:04 +0200160 /** Bitfield of which images are used */
161 uint32_t images_used;
Marek Olšák6503e4b2020-05-21 05:13:01 -0400162 /** Bitfield of which images are buffers. */
163 uint32_t image_buffers;
Marek Olšákcac24be2020-05-24 15:52:26 -0400164 /** Bitfield of which images are MSAA. */
165 uint32_t msaa_images;
Tapani Pälli5910c932020-02-19 08:33:04 +0200166
Marek Olšák84a1a252019-11-05 19:10:09 -0500167 /* SPV_KHR_float_controls: execution mode for floating point ops */
168 uint16_t float_controls_execution_mode;
169
Marek Olšák3f1b35a2020-09-29 17:34:28 -0400170 uint16_t inlinable_uniform_dw_offsets[MAX_INLINABLE_UNIFORMS];
171 uint8_t num_inlinable_uniforms:4;
172
Marek Olšák84a1a252019-11-05 19:10:09 -0500173 /* The size of the gl_ClipDistance[] array, if declared. */
174 uint8_t clip_distance_array_size:4;
175
176 /* The size of the gl_CullDistance[] array, if declared. */
177 uint8_t cull_distance_array_size:4;
178
179 /* Whether or not this shader ever uses textureGather() */
180 bool uses_texture_gather:1;
181
Kenneth Graunke86c68bb2017-10-26 15:19:25 -0700182 /**
183 * True if this shader uses the fddx/fddy opcodes.
184 *
185 * Note that this does not include the "fine" and "coarse" variants.
186 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500187 bool uses_fddx_fddy:1;
Kenneth Graunke86c68bb2017-10-26 15:19:25 -0700188
Matt Turnerecb115e2018-12-10 11:01:39 -0800189 /**
190 * True if this shader uses 64-bit ALU operations
191 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500192 bool uses_64bit:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100193
Marek Olšáka0b711d2019-10-18 19:49:44 -0400194 /* Whether the first UBO is the default uniform buffer, i.e. uniforms. */
Marek Olšák84a1a252019-11-05 19:10:09 -0500195 bool first_ubo_is_default_ubo:1;
Marek Olšáka0b711d2019-10-18 19:49:44 -0400196
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100197 /* Whether or not separate shader objects were used */
Marek Olšák84a1a252019-11-05 19:10:09 -0500198 bool separate_shader:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100199
200 /** Was this shader linked with any transform feedback varyings? */
Marek Olšák84a1a252019-11-05 19:10:09 -0500201 bool has_transform_feedback_varyings:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100202
Marek Olšák4b4b3832019-10-25 00:15:37 -0400203 /* Whether flrp has been lowered. */
Marek Olšák84a1a252019-11-05 19:10:09 -0500204 bool flrp_lowered:1;
Samuel Iglesias Gonsálvez84781e12018-05-31 12:20:30 +0200205
Marek Olšák4d36dce2020-08-14 19:13:52 -0400206 /* Whether nir_lower_io has been called to lower derefs.
207 * nir_variables for inputs and outputs might not be present in the IR.
208 */
209 bool io_lowered:1;
210
Marek Olšák85a72392020-03-10 23:27:35 -0400211 /* Whether the shader writes memory, including transform feedback. */
212 bool writes_memory:1;
213
Ilia Mirkincc6661b2020-04-10 16:02:09 -0400214 /* Whether gl_Layer is viewport-relative */
215 bool layer_viewport_relative:1;
216
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100217 union {
218 struct {
Timothy Arcerif63e05a2017-12-16 14:06:23 +1100219 /* Which inputs are doubles */
220 uint64_t double_inputs;
Timur Kristóf317f10b2019-02-05 18:08:24 +0100221
Marek Olšák028dbd32019-07-31 16:55:33 -0400222 /* For AMD-specific driver-internal shaders. It replaces vertex
223 * buffer loads with code generating VS inputs from scalar registers.
224 *
225 * Valid values: SI_VS_BLIT_SGPRS_POS_*
226 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500227 uint8_t blit_sgprs_amd:4;
Marek Olšák028dbd32019-07-31 16:55:33 -0400228
Timur Kristóf317f10b2019-02-05 18:08:24 +0100229 /* True if the shader writes position in window space coordinates pre-transform */
Marek Olšák84a1a252019-11-05 19:10:09 -0500230 bool window_space_position:1;
Timothy Arcerif63e05a2017-12-16 14:06:23 +1100231 } vs;
232
233 struct {
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100234 /** The output primitive type (GL enum value) */
Marek Olšák84a1a252019-11-05 19:10:09 -0500235 uint16_t output_primitive;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100236
Timothy Arcerib99ecaf2016-10-13 15:16:49 +1100237 /** The input primitive type (GL enum value) */
Marek Olšák84a1a252019-11-05 19:10:09 -0500238 uint16_t input_primitive;
Timothy Arcerib99ecaf2016-10-13 15:16:49 +1100239
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100240 /** The maximum number of vertices the geometry shader might write. */
Marek Olšák84a1a252019-11-05 19:10:09 -0500241 uint16_t vertices_out;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100242
243 /** 1 .. MAX_GEOMETRY_SHADER_INVOCATIONS */
Marek Olšák84a1a252019-11-05 19:10:09 -0500244 uint8_t invocations;
245
246 /** The number of vertices recieves per input primitive (max. 6) */
247 uint8_t vertices_in:3;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100248
249 /** Whether or not this shader uses EndPrimitive */
Marek Olšák84a1a252019-11-05 19:10:09 -0500250 bool uses_end_primitive:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100251
Louis-Francis Ratté-Boulianne7dcb1d22020-03-19 04:59:27 -0400252 /** The streams used in this shaders (max. 4) */
253 uint8_t active_stream_mask:4;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100254 } gs;
255
256 struct {
Marek Olšák84a1a252019-11-05 19:10:09 -0500257 bool uses_discard:1;
Daniel Schürmann5adcfa62020-03-04 16:43:15 +0100258 bool uses_demote:1;
Marek Olšákea779582020-09-17 20:25:22 -0400259 bool uses_fbfetch_output:1;
260 bool color_is_dual_source:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100261
262 /**
Jason Ekstrandae392d72019-06-07 18:07:46 -0500263 * True if this fragment shader requires helper invocations. This
264 * can be caused by the use of ALU derivative ops, texture
265 * instructions which do implicit derivatives, and the use of quad
266 * subgroup operations.
267 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500268 bool needs_helper_invocations:1;
Jason Ekstrandae392d72019-06-07 18:07:46 -0500269
270 /**
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100271 * Whether any inputs are declared with the "sample" qualifier.
272 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500273 bool uses_sample_qualifier:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100274
275 /**
276 * Whether early fragment tests are enabled as defined by
277 * ARB_shader_image_load_store.
278 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500279 bool early_fragment_tests:1;
Lionel Landwerlin039d8362016-11-30 14:47:41 +0000280
281 /**
282 * Defined by INTEL_conservative_rasterization.
283 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500284 bool inner_coverage:1;
Lionel Landwerlin039d8362016-11-30 14:47:41 +0000285
Marek Olšák84a1a252019-11-05 19:10:09 -0500286 bool post_depth_coverage:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100287
Alejandro Piñeiro0629b2a2019-02-07 18:43:58 +0100288 /**
289 * \name ARB_fragment_coord_conventions
290 * @{
291 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500292 bool pixel_center_integer:1;
293 bool origin_upper_left:1;
Alejandro Piñeiro0629b2a2019-02-07 18:43:58 +0100294 /*@}*/
Timothy Arceri347038b2018-02-16 16:10:58 +1100295
Marek Olšák84a1a252019-11-05 19:10:09 -0500296 bool pixel_interlock_ordered:1;
297 bool pixel_interlock_unordered:1;
298 bool sample_interlock_ordered:1;
299 bool sample_interlock_unordered:1;
Plamena Manolova60e843c2018-04-27 14:12:30 +0100300
Eric Anholtaaef1272019-02-05 10:22:30 -0800301 /**
302 * Flags whether NIR's base types on the FS color outputs should be
303 * ignored.
304 *
305 * GLSL requires that fragment shader output base types match the
306 * render target's base types for the behavior to be defined. From
307 * the GL 4.6 spec:
308 *
309 * "If the values written by the fragment shader do not match the
310 * format(s) of the corresponding color buffer(s), the result is
311 * undefined."
312 *
313 * However, for NIR shaders translated from TGSI, we don't have the
314 * output types any more, so the driver will need to do whatever
315 * fixups are necessary to handle effectively untyped data being
316 * output from the FS.
317 */
Marek Olšák84a1a252019-11-05 19:10:09 -0500318 bool untyped_color_outputs:1;
Eric Anholtaaef1272019-02-05 10:22:30 -0800319
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100320 /** gl_FragDepth layout for ARB_conservative_depth. */
Marek Olšák84a1a252019-11-05 19:10:09 -0500321 enum gl_frag_depth_layout depth_layout:3;
Marek Olšák7980f3e2020-08-13 15:14:19 -0400322
323 /**
324 * Interpolation qualifiers for drivers that lowers color inputs
325 * to system values.
326 */
327 unsigned color0_interp:3; /* glsl_interp_mode */
328 bool color0_sample:1;
329 bool color0_centroid:1;
330 unsigned color1_interp:3; /* glsl_interp_mode */
331 bool color1_sample:1;
332 bool color1_centroid:1;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100333 } fs;
334
335 struct {
Marek Olšák84a1a252019-11-05 19:10:09 -0500336 uint16_t local_size[3];
Timothy Arceri54095ed2016-10-13 15:18:53 +1100337
Marek Olšák84a1a252019-11-05 19:10:09 -0500338 bool local_size_variable:1;
339 uint8_t user_data_components_amd:3;
340
341 /*
342 * Arrangement of invocations used to calculate derivatives in a compute
343 * shader. From NV_compute_shader_derivatives.
344 */
345 enum gl_derivative_group derivative_group:2;
Timothy Arceri8a69ae52016-10-31 22:06:37 +1100346
Timothy Arceri54095ed2016-10-13 15:18:53 +1100347 /**
348 * Size of shared variables accessed by the compute shader.
349 */
350 unsigned shared_size;
Karol Herbst5f8257f2018-07-19 13:04:14 +0200351
Karol Herbst5f8257f2018-07-19 13:04:14 +0200352 /**
353 * pointer size is:
354 * AddressingModelLogical: 0 (default)
355 * AddressingModelPhysical32: 32
356 * AddressingModelPhysical64: 64
357 */
358 unsigned ptr_size;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100359 } cs;
360
Kenneth Graunke5edc3382017-01-09 11:37:21 -0800361 /* Applies to both TCS and TES. */
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100362 struct {
Marek Olšák84a1a252019-11-05 19:10:09 -0500363 uint16_t primitive_mode; /* GL_TRIANGLES, GL_QUADS or GL_ISOLINES */
Timothy Arceri088c25b2016-10-13 15:11:47 +1100364
Marek Olšák84a1a252019-11-05 19:10:09 -0500365 /** The number of vertices in the TCS output patch. */
366 uint8_t tcs_vertices_out;
367 enum gl_tess_spacing spacing:2;
368
Mark Janesc07bbdb2020-03-31 16:41:28 -0700369 /** Is the vertex order counterclockwise? */
370 bool ccw:1;
371 bool point_mode:1;
372
Timur Kristóff1dd81a2020-03-13 10:14:37 +0100373 /* Bit mask of TCS per-vertex inputs (VS outputs) that are used
374 * with a vertex index that is NOT the invocation id
375 */
376 uint64_t tcs_cross_invocation_inputs_read;
377
378 /* Bit mask of TCS per-vertex outputs that are used
379 * with a vertex index that is NOT the invocation id
380 */
381 uint64_t tcs_cross_invocation_outputs_read;
Kenneth Graunke5edc3382017-01-09 11:37:21 -0800382 } tess;
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100383 };
384} shader_info;
385
Timothy Arceri094fe3a2016-10-13 10:46:11 +1100386#ifdef __cplusplus
387}
388#endif
389
390#endif /* SHADER_INFO_H */