diff options
author | Ilia Mirkin <[email protected]> | 2015-04-01 01:14:39 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-02 00:09:14 -0400 |
commit | 6f4c1976f4e5ecdebfe5b9ac16b6d13a5e60eed1 (patch) | |
tree | 6cbe3f10e99545f5d7aa0c75f947642cb7373f61 /src/gallium/drivers/freedreno/a4xx | |
parent | d9992ab35a51c574dcfa8049859c0887956ecdf6 (diff) |
freedreno: convert blit program to array for each number of rts
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_gmem.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_program.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_screen.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_gmem.c b/src/gallium/drivers/freedreno/a4xx/fd4_gmem.c index 2c579955712..9a905062071 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_gmem.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_gmem.c @@ -282,7 +282,7 @@ fd4_emit_tile_mem2gmem(struct fd_context *ctx, struct fd_tile *tile) struct pipe_framebuffer_state *pfb = &ctx->framebuffer; struct fd4_emit emit = { .vtx = &fd4_ctx->blit_vbuf_state, - .prog = &ctx->blit_prog, + .prog = &ctx->blit_prog[0], .key = key, .format = fd4_emit_format(pfb->cbufs[0]), }; diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index 9ee47fbdb66..015f6c85225 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -497,7 +497,7 @@ static void fix_blit_fp(struct pipe_context *pctx) { struct fd_context *ctx = fd_context(pctx); - struct fd4_shader_stateobj *so = ctx->blit_prog.fp; + struct fd4_shader_stateobj *so = ctx->blit_prog[0].fp; so->shader->vpsrepl[0] = 0x99999999; so->shader->vpsrepl[1] = 0x99999999; diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c index cf697d4b741..f5b46685bdf 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c @@ -100,6 +100,7 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen, void fd4_screen_init(struct pipe_screen *pscreen) { + fd_screen(pscreen)->max_rts = 1; pscreen->context_create = fd4_context_create; pscreen->is_format_supported = fd4_screen_is_format_supported; } |