diff options
author | Eric Anholt <[email protected]> | 2018-12-05 17:10:15 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-12-07 16:48:23 -0800 |
commit | 503b55c6224f32304852b54d953d9e7d5d144708 (patch) | |
tree | 7f3523690778351bc3fd7033416f19c803cd25fc /src/gallium/drivers/v3d/v3d_context.h | |
parent | 504d06e4c1c5664c1e208179a43adbbd27fd4522 (diff) |
v3d: Don't forget to flush writes to UBOs.
If someone did TF into a UBO, we might have left the TF job un-flushed at
the point of reading.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index d62dd229ef2..4db422b5755 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -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) { |