From fef2f10cc2ad298f179d5a5aa0a210fbea02d95f Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sat, 6 Apr 2019 22:55:36 -0700 Subject: 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 Reviewed-by: Qiang Yu Tested-by: Icenowy Zheng --- src/gallium/drivers/lima/lima_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/lima/lima_state.c') 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); -- cgit v1.2.3