diff options
author | Rob Clark <[email protected]> | 2016-03-01 17:51:36 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-03-01 19:21:45 -0500 |
commit | c4ae047cabd8f7ef8ff90add285804635d8e0c50 (patch) | |
tree | d39c92f39a242fb59b2d60f3f2073b6653b3a6d9 /src/gallium/drivers/freedreno/a4xx | |
parent | c3f2f8cbe47a51087dcc82826bd939786c812366 (diff) |
freedreno/ir3: enable shareable shaders
Now that we are no longer using the pctx reference in the shader, drop
it and turn on shareable shaders.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index 74716fb733f..037c67f59dd 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -51,7 +51,8 @@ create_shader_stateobj(struct pipe_context *pctx, const struct pipe_shader_state enum shader_t type) { struct fd4_shader_stateobj *so = CALLOC_STRUCT(fd4_shader_stateobj); - so->shader = ir3_shader_create(pctx, cso, type); + struct ir3_compiler *compiler = fd_context(pctx)->screen->compiler; + so->shader = ir3_shader_create(compiler, cso, type); return so; } |