diff options
author | Jason Ekstrand <[email protected]> | 2018-08-16 09:21:10 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-08-29 14:04:02 -0500 |
commit | 7cdf8f9339017ea5ee3c7f3a585c6bd5a815b99b (patch) | |
tree | a1cf740612863dd07eace2860fa33ea77e6a05c4 /src/compiler/nir | |
parent | 1f7be4968f5fb4c4c97cafec591dd1721fecd69e (diff) |
nir/format_convert: Fix a bitmask in unpack_11f11f10f
Fixes: 4e337b42f9a2 "nir/format_convert: Add pack/unpack for R11F_G11F_B10F"
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-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 55b153633fb..11456d0b047 100644 --- a/src/compiler/nir/nir_format_convert.h +++ b/src/compiler/nir/nir_format_convert.h @@ -288,7 +288,7 @@ nir_format_unpack_11f11f10f(nir_builder *b, nir_ssa_def *packed) { nir_ssa_def *chans[3]; chans[0] = nir_mask_shift(b, packed, 0x000007ff, 4); - chans[1] = nir_mask_shift(b, packed, 0x003ff100, -7); + chans[1] = nir_mask_shift(b, packed, 0x003ff800, -7); chans[2] = nir_mask_shift(b, packed, 0xffc00000, -17); for (unsigned i = 0; i < 3; i++) |