From 3cd654b88a19c27de5bd7914f0203eea58ee5778 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 15 May 2024 15:29:53 +0100 Subject: [PATCH] dri: Stop answering DRI_IMAGE_ATTRIB_FORMAT External users only care about FourCC, and they can already query that directly. Signed-off-by: Daniel Stone Part-of: --- src/gallium/frontends/dri/dri2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index d94d098fa24..0b8aaa2d956 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -1293,9 +1293,6 @@ static bool dri2_query_image_common(__DRIimage *image, int attrib, int *value) { switch (attrib) { - case __DRI_IMAGE_ATTRIB_FORMAT: - *value = image->dri_format; - return true; case __DRI_IMAGE_ATTRIB_WIDTH: *value = image->texture->width0; return true;