iris: Rework edgeflag handling

We were relying on specific pass ordering in st to avoid setting
inputs_read/outputs_written for edge flags.  Instead, just assume
that it happens and throw out the results we don't want.

We should probably revisit this and try and add a vertex element
property like I originally wanted so we can avoid having it be
associated with the VS altogether.
This commit is contained in:
Kenneth Graunke
2019-10-23 15:38:52 -07:00
parent 6b166d6fb1
commit 8dadef2ec5
2 changed files with 28 additions and 7 deletions

View File

@@ -281,6 +281,8 @@ struct iris_uncompiled_shader {
/** Should we use ALT mode for math? Useful for ARB programs. */
bool use_alt_mode;
bool needs_edge_flag;
/** Constant data scraped from the shader by nir_opt_large_constants */
struct pipe_resource *const_data;