agx: Assert that memory index is 32-bit reg
Semantics will be wrong otherwise (reading garbage). Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21643>
This commit is contained in:
committed by
Marge Bot
parent
2a174f0019
commit
66f806d01d
@@ -158,6 +158,7 @@ agx_pack_memory_index(agx_index index, bool *flag)
|
||||
return index.value;
|
||||
} else {
|
||||
assert(index.type == AGX_INDEX_REGISTER);
|
||||
assert(index.size == AGX_SIZE_32);
|
||||
assert((index.value & 1) == 0);
|
||||
assert(index.value < 0x100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user