Indexable temp registers always start at component 0

This commit is contained in:
baldurk
2018-06-04 10:42:23 +01:00
parent c0200b66c8
commit 38acb9175a
+1 -1
View File
@@ -1069,7 +1069,7 @@ SPDBChunk::SPDBChunk(void *chunk)
char regcomps[] = "xyzw";
uint32_t regindex = indexable ? regoffset : regoffset / 16;
uint32_t regfirstcomp = (regoffset % 16) / 4;
uint32_t regfirstcomp = indexable ? 0 : (regoffset % 16) / 4;
uint32_t regnumcomps = indexable ? 4 : defrange->sizeInParent / 4;
char *regswizzle = regcomps;