diff options
author | Rob Clark <[email protected]> | 2016-03-01 17:31:21 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-03-01 19:20:33 -0500 |
commit | 5fd152bae8a765024231a7390ae48752b579a5a9 (patch) | |
tree | 223cb895d5a94727ac8d0bcef1cead5c3941eb20 /src/gallium/drivers/freedreno/a4xx | |
parent | 1be953797ea4ae31193ab40bd35133eef38ae0ce (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/a4xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c index b2a69cca56c..c193f361e4c 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c @@ -105,7 +105,7 @@ fd4_screen_init(struct pipe_screen *pscreen) { struct fd_screen *screen = fd_screen(pscreen); screen->max_rts = A4XX_MAX_RENDER_TARGETS; - screen->compiler = ir3_compiler_create(screen->gpu_id); + screen->compiler = ir3_compiler_create(screen->dev, screen->gpu_id); pscreen->context_create = fd4_context_create; pscreen->is_format_supported = fd4_screen_is_format_supported; } |