v3d: fix flags check for ldvary merge
Only found this now because I am testing a more flexible scheduling of ldvary sequences and got 4 shaders in shader-db that would not compile because of this (since the resulting instruction would not be correct and we would fail to pack it).