From 84dc9af3d4c1a2adc6b62e3773b0ccd6dbacf77b Mon Sep 17 00:00:00 2001 From: Patrick Lerda Date: Fri, 10 Oct 2025 16:22:48 +0200 Subject: [PATCH] r600: update nplanes support This change fixes "piglit/bin/ext_image_dma_buf_import-export -auto". Fixes: 02aaf360ae38 ("r600: Implement resource_get_param") Signed-off-by: Patrick Lerda Part-of: --- src/gallium/drivers/r600/r600_texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index c102d73f4cd..e94af3e5a92 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -14,6 +14,7 @@ #include "util/u_memory.h" #include "util/u_pack_color.h" #include "util/u_surface.h" +#include "util/u_resource.h" #include "util/os_time.h" #include "frontend/winsys_handle.h" #include @@ -442,7 +443,7 @@ static bool r600_texture_get_param(struct pipe_screen *screen, switch (param) { case PIPE_RESOURCE_PARAM_NPLANES: - *value = 1; + *value = util_resource_num(resource); return true; case PIPE_RESOURCE_PARAM_STRIDE: