diff options
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.h b/src/gallium/drivers/iris/iris_screen.h index 8bf10996c3f..77fbd906b73 100644 --- a/src/gallium/drivers/iris/iris_screen.h +++ b/src/gallium/drivers/iris/iris_screen.h @@ -33,6 +33,9 @@ struct iris_bo; +#define READ_ONCE(x) (*(volatile __typeof__(x) *)&(x)) +#define WRITE_ONCE(x, v) *(volatile __typeof__(x) *)&(x) = (v) + #define IRIS_MAX_TEXTURE_SAMPLERS 32 #define IRIS_MAX_SOL_BUFFERS 4 |