From 392b5874847fbbb8b9355201a8866875457e4f69 Mon Sep 17 00:00:00 2001 From: Roy Oursler Date: Mon, 13 Jan 2025 08:26:32 -0800 Subject: [PATCH] xe: ocl: fix float->int conversion in ocl_conversion.h --- src/gpu/intel/ocl/ocl_conversion.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpu/intel/ocl/ocl_conversion.h b/src/gpu/intel/ocl/ocl_conversion.h index 7635972175f..cdc9cf8c826 100644 --- a/src/gpu/intel/ocl/ocl_conversion.h +++ b/src/gpu/intel/ocl/ocl_conversion.h @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2024 Intel Corporation +* Copyright 2024-2025 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,6 +73,8 @@ def_std_into_sat(uchar, int); IF_DOUBLE_SUPPORTED(def_std_into_sat(uchar, double)); IF_HALF_SUPPORTED(def_std_into_sat(uchar, half)); +def_std_into_sat(int, float); + IF_HALF_SUPPORTED(def_std_into(half, char)); IF_HALF_SUPPORTED(def_std_into(half, uchar)); IF_HALF_SUPPORTED(def_std_into(half, float));