From 2fd1222a4f501223ed3f40126448692a1be66ba6 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: (cherry picked from commit ef09df004e16f163ce45f6d2df265120c63f2756) --- .pick_status.json | 2 +- src/compiler/glsl_types.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index debeac28906..37ac16c1e61 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -434,7 +434,7 @@ "description": "compiler/types: handle BFLOAT16 when decoding blob", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "9e5d7eb88d7046fc6dd5c6ef85f9ae7e898702cd", "notes": null diff --git a/src/compiler/glsl_types.c b/src/compiler/glsl_types.c index 84d51c980e8..91753fc62f0 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: