Mesa (staging/18.2): nir/format_convert: Fix a bitmask in unpack_11f11f10f
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Aug 30 12:59:02 UTC 2018
Module: Mesa
Branch: staging/18.2
Commit: 810c45f3fd38104493f62fb65fcb4f62b89ab3fd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=810c45f3fd38104493f62fb65fcb4f62b89ab3fd
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Thu Aug 16 09:21:10 2018 -0500
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 <kenneth at whitecape.org>
(cherry picked from commit 7cdf8f9339017ea5ee3c7f3a585c6bd5a815b99b)
---
src/compiler/nir/nir_format_convert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_format_convert.h b/src/compiler/nir/nir_format_convert.h
index 45532b7488..e5cc653c44 100644
--- a/src/compiler/nir/nir_format_convert.h
+++ b/src/compiler/nir/nir_format_convert.h
@@ -191,7 +191,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++)
More information about the mesa-commit
mailing list