From ef09df004e16f163ce45f6d2df265120c63f2756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Tue, 19 Aug 2025 07:11:54 +0300 Subject: [PATCH] compiler/types: handle BFLOAT16 when decoding blob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New type was not handled in the switch which lead to hitting following assert when running tests with pipeline cache: deqp-vk: ../src/compiler/glsl_types.c:3334: decode_type_from_blob: Assertion `!"Cannot decode type!"' failed. Fixes: 9e5d7eb88d7 ("compiler/types: add a bfloat16 type") Signed-off-by: Tapani Pälli Reviewed-by: Caio Oliveira Part-of: --- src/compiler/glsl_types.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl_types.c b/src/compiler/glsl_types.c index 24f84975b81..d5be172e74e 100644 --- a/src/compiler/glsl_types.c +++ b/src/compiler/glsl_types.c @@ -3234,6 +3234,7 @@ decode_type_from_blob(struct blob_reader *blob) case GLSL_TYPE_INT: case GLSL_TYPE_FLOAT: case GLSL_TYPE_FLOAT16: + case GLSL_TYPE_BFLOAT16: case GLSL_TYPE_DOUBLE: case GLSL_TYPE_UINT8: case GLSL_TYPE_INT8: