Mesa (master): radv: fix mask attribs properly.

Dave Airlie airlied at kemper.freedesktop.org
Thu Mar 30 03:09:55 UTC 2017


Module: Mesa
Branch: master
Commit: a930c2c612e3d224f2cf0ada560d88bf5fe785eb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a930c2c612e3d224f2cf0ada560d88bf5fe785eb

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Mar 30 13:09:03 2017 +1000

radv: fix mask attribs properly.

some days it just doesn't pay to get out of bed.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/common/ac_nir_to_llvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 5e69a75b4c..8e770495f0 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -4178,7 +4178,7 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
 {
 	int idx = variable->data.location + variable->data.index;
 	unsigned attrib_count = glsl_count_attribute_slots(variable->type, false);
-	unsigned mask_attribs;
+	uint64_t mask_attribs;
 	variable->data.driver_location = idx * 4;
 
 	mask_attribs = ((1ull << attrib_count) - 1) << idx;
@@ -4195,7 +4195,7 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
 				attrib_count = 2;
 			else
 				attrib_count = 1;
-			mask_attribs = 1 << idx;
+			mask_attribs = 1ull << idx;
 		}
 	}
 




More information about the mesa-commit mailing list