intel/blorp: Use float directly to avoid #include "mesa/main/format_utils.h"
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 2 Aug 2023 11:10:49 +0000 (19:10 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Aug 2023 22:00:15 +0000 (22:00 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24438>

src/intel/blorp/blorp_blit.c

index 62b3d3c..46d20c1 100644 (file)
@@ -28,8 +28,6 @@
 #include "dev/intel_debug.h"
 
 #include "util/format_rgb9e5.h"
-/* header-only include needed for _mesa_unorm_to_float and friends. */
-#include "mesa/main/format_utils.h"
 #include "util/u_math.h"
 
 #define FILE_DEBUG_FLAG DEBUG_BLORP
@@ -1577,8 +1575,8 @@ brw_blorp_get_blit_kernel_cs(struct blorp_batch *batch,
 
 static void
 brw_blorp_setup_coord_transform(struct brw_blorp_coord_transform *xform,
-                                GLfloat src0, GLfloat src1,
-                                GLfloat dst0, GLfloat dst1,
+                                float src0, float src1,
+                                float dst0, float dst1,
                                 bool mirror)
 {
    double scale = (double)(src1 - src0) / (double)(dst1 - dst0);