From 53da1534b595febb2a5e15f99319c95a380b3e46 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 16 Feb 2023 12:42:51 -0500 Subject: [PATCH] llvmpipe: fix LP_PERF=no_depth to ignore depth format cc: mesa-stable Reviewed-by: Brian Paul brianp@vmware.com Part-of: --- src/gallium/drivers/llvmpipe/lp_state_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c index 9e6fbb86b09..e6df908da03 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c @@ -61,7 +61,7 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe, * If no depth buffer is bound, send the utility function the default * format for no bound depth (PIPE_FORMAT_NONE). */ - enum pipe_format depth_format = fb->zsbuf ? + enum pipe_format depth_format = fb->zsbuf && !(LP_PERF & PERF_NO_DEPTH) ? fb->zsbuf->format : PIPE_FORMAT_NONE; const struct util_format_description *depth_desc = util_format_description(depth_format);