projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3782a6
)
freedreno/ir3: use lower_global_vars_to_local in cmdline compiler
author
Rob Clark
<robdclark@gmail.com>
Fri, 6 Apr 2018 12:54:25 +0000
(08:54 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Sat, 7 Apr 2018 15:33:41 +0000
(11:33 -0400)
tgsi_to_nir emits things with arrays as global vars.. and nir->ir3 does
lower_locals_to_regs. But nothing was lowering global to local, which
breaks compiling tgsi shaders
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
index 41bd1dee0de7b9f557c18e368a6332f255240326..ff1d9d1377b8ced0d53333ae226b32093c678f2f 100644
(file)
--- a/
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
+++ b/
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
@@
-441,6
+441,7
@@
int main(int argc, char **argv)
tgsi_dump(toks, 0);
nir = ir3_tgsi_to_nir(toks);
+ NIR_PASS_V(nir, nir_lower_global_vars_to_local);
} else if (from_spirv) {
nir = load_spirv(filenames[0], entry, stage);