diff options
author | Jason Ekstrand <[email protected]> | 2018-08-13 17:31:19 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-08-29 14:04:02 -0500 |
commit | 1f7be4968f5fb4c4c97cafec591dd1721fecd69e (patch) | |
tree | 23a9cfa762d559c22c631283261598ce09102d90 /src/compiler/nir/nir_format_convert.h | |
parent | 7bd0363d6fdc7594273e6ef8a6dbd5bd9eb89856 (diff) |
nir/format_convert: Rename pack_r11g11b10f to pack_11f11f10f
This matches the unpack function.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_format_convert.h')
-rw-r--r-- | src/compiler/nir/nir_format_convert.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |