diff options
author | Rob Clark <[email protected]> | 2018-02-24 11:33:09 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-03-05 08:05:33 -0500 |
commit | 9e4f5966e892485a882c9537247bae17ea132be9 (patch) | |
tree | f4af7b6d7479ff37a57ae9426c0793c3c19d369f /src/gallium/drivers/freedreno/ir3 | |
parent | 322a51b549c2db2d93f6cf84ff7df225779b5584 (diff) |
freedreno/ir3: cmdline compiler updates for spv shaders
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index 51197ab84db..41bd1dee0de 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c @@ -443,6 +443,13 @@ int main(int argc, char **argv) nir = ir3_tgsi_to_nir(toks); } else if (from_spirv) { nir = load_spirv(filenames[0], entry, stage); + + NIR_PASS_V(nir, nir_lower_io, nir_var_all, ir3_glsl_type_size, + (nir_lower_io_options)0); + + /* TODO do this somewhere else */ + nir_lower_int64(nir, ~0); + nir_lower_system_values(nir); } else if (num_files > 0) { nir = load_glsl(num_files, filenames, stage); } else { |