From: Jason Ekstrand Date: Mon, 13 Aug 2018 22:31:19 +0000 (-0500) Subject: nir/format_convert: Rename pack_r11g11b10f to pack_11f11f10f X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f7be4968f5fb4c4c97cafec591dd1721fecd69e;p=mesa.git nir/format_convert: Rename pack_r11g11b10f to pack_11f11f10f This matches the unpack function. Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/nir/nir_format_convert.h b/src/compiler/nir/nir_format_convert.h index d01cbfaa267..55b153633fb 100644 --- a/src/compiler/nir/nir_format_convert.h +++ b/src/compiler/nir/nir_format_convert.h @@ -298,7 +298,7 @@ nir_format_unpack_11f11f10f(nir_builder *b, nir_ssa_def *packed) } static inline nir_ssa_def * -nir_format_pack_r11g11b10f(nir_builder *b, nir_ssa_def *color) +nir_format_pack_11f11f10f(nir_builder *b, nir_ssa_def *color) { /* 10 and 11-bit floats are unsigned. Clamp to non-negative */ nir_ssa_def *clamped = nir_fmax(b, color, nir_imm_float(b, 0));