[Mesa-dev] [PATCH 2/2] ac: set count correctly when storing doubles to ssbo
Timothy Arceri
tarceri at itsqueeze.com
Wed Jan 17 09:47:39 UTC 2018
Reseting to 4 would have only worked for dvec4, subtracting 4
from the original count will instead give us 6 when working with a
dvec3.
---
src/amd/common/ac_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index c24e563695..bb4f90b3a0 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -2452,7 +2452,7 @@ static void visit_store_ssbo(struct ac_nir_context *ctx,
if (count > 4) {
writemask |= ((1u << (count - 4)) - 1u) << (start + 4);
- count = 4;
+ count -= 4;
elem_size_mul = 1;
}
--
2.14.3
More information about the mesa-dev
mailing list