diff options
author | Vasily Khoruzhick <[email protected]> | 2019-04-06 22:55:36 -0700 |
---|---|---|
committer | Qiang Yu <[email protected]> | 2019-04-14 01:16:00 +0000 |
commit | fef2f10cc2ad298f179d5a5aa0a210fbea02d95f (patch) | |
tree | 884a908a3647f88aaf99f84d99238ea860a03fd3 /src/gallium/drivers/lima/lima_state.c | |
parent | a817f0fec6e3d3bbbfb8df0349c0085710b5aad4 (diff) |
lima: add support for depth/stencil fbo attachments and textures
Hardware supports writing back Z/S buffers and sampling from them,
so add support for that.
Signed-off-by: Vasily Khoruzhick <[email protected]>
Reviewed-by: Qiang Yu <[email protected]>
Tested-by: Icenowy Zheng <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_state.c')
-rw-r--r-- | src/gallium/drivers/lima/lima_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_state.c b/src/gallium/drivers/lima/lima_state.c index 7985dacd407..1621618c865 100644 --- a/src/gallium/drivers/lima/lima_state.c +++ b/src/gallium/drivers/lima/lima_state.c @@ -47,7 +47,7 @@ lima_set_framebuffer_state(struct pipe_context *pctx, fb->base.samples = framebuffer->samples; - fb->base.nr_cbufs = 1; + fb->base.nr_cbufs = framebuffer->nr_cbufs; pipe_surface_reference(&fb->base.cbufs[0], framebuffer->cbufs[0]); pipe_surface_reference(&fb->base.zsbuf, framebuffer->zsbuf); |