summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-03-01 17:31:21 -0500
committerRob Clark <[email protected]>2016-03-01 19:20:33 -0500
commit5fd152bae8a765024231a7390ae48752b579a5a9 (patch)
tree223cb895d5a94727ac8d0bcef1cead5c3941eb20 /src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
parent1be953797ea4ae31193ab40bd35133eef38ae0ce (diff)
freedreno/ir3: add dev ptr to ir3_compiler
And use this for allocating bo's to hold the shader binary, rather than accessing the dev via ctx ptr. One step towards making shaders sharable across contexts. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_cmdline.c')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
index 481859efb17..7ae4e94f0b3 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
tgsi_dump(toks, 0);
nir_shader *nir = ir3_tgsi_to_nir(toks);
- s.compiler = ir3_compiler_create(gpu_id);
+ s.compiler = ir3_compiler_create(NULL, gpu_id);
s.nir = ir3_optimize_nir(&s, nir, NULL);
v.key = key;