v3d: handle write masks in store operations
@anholt: I made the style fixes last as a separate patch to ease review. This fixes a bunch of GLES 3.1 tests... I thought it might also help with the invalid writes messages from the kernel that we see with some times in piglit and CTS runs, but it doesn't seem to do anything for that.