Some drivers implement luminance as RGBA. Since the code checks the renderbuffer format instead of the internal format this can cause the query to incorrectly return "signed" on the Alpha component for signed luminance formats. Fixes the following Piglit test for various drivers (at least Panfrost and V3D): spec/ext_packed_float/query-rgba-signed-components Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33372>