v3d: Don't forget to flush writes to UBOs.
[mesa.git] / src / gallium / drivers / v3d / v3d_context.h
index d62dd229ef270379000570210e86e95a25b0f3ea..4db422b5755750d4902432e1db9c1d5c23757fe2 100644 (file)
@@ -459,6 +459,9 @@ struct v3d_blend_state {
                 fprintf(stderr, __VA_ARGS__);           \
 } while (0)
 
+#define foreach_bit(b, mask)                                            \
+        for (uint32_t _m = (mask), b; _m && ({(b) = u_bit_scan(&_m); 1;});)
+
 static inline struct v3d_context *
 v3d_context(struct pipe_context *pcontext)
 {