diff options
author | Connor Abbott <[email protected]> | 2017-07-06 12:23:33 -0700 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2017-07-13 14:45:25 -0700 |
commit | 4df93a54f18ff8baca1d7a1b395c1fa70d65a9bb (patch) | |
tree | 8412235d5749f8a6ecba535e6da764a6a12b8f25 /src | |
parent | 99ff7a9f1f08b2e3687946dec09b2c010540fa1d (diff) |
nir/lower_io_to_temporaries: don't set compact on shadow vars
The compact flag doesn't make sense on local variables, since the
packing on them is up to the driver. This fixes nir_validate assertions
in some cases, particularly when lower_io_to_temporaries is used on
per-vertex inputs/outputs.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_lower_io_to_temporaries.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_io_to_temporaries.c b/src/compiler/nir/nir_lower_io_to_temporaries.c index 6031bbdb520..d2df14ed1e0 100644 --- a/src/compiler/nir/nir_lower_io_to_temporaries.c +++ b/src/compiler/nir/nir_lower_io_to_temporaries.c @@ -141,6 +141,7 @@ create_shadow_temp(struct lower_io_state *state, nir_variable *var) temp->data.mode = nir_var_global; temp->data.read_only = false; temp->data.fb_fetch_output = false; + temp->data.compact = false; return nvar; } |