compiler/types: handle BFLOAT16 when decoding blob

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: 9e5d7eb88d ("compiler/types: add a bfloat16 type")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36833>
(cherry picked from commit ef09df004e)
This commit is contained in:
Tapani Pälli 2025-08-19 07:11:54 +03:00 committed by Eric Engestrom
parent f4b4191f1c
commit 2fd1222a4f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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: