diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
commit | b44518130b33cadb5c1d619e9e936ae0e0dbf7cb (patch) | |
tree | 6069eb03c39fbc79808a7d94f857118cce75cbe3 /lib/mesa/src/gallium/drivers/lima/lima_gpu.h | |
parent | 32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (diff) |
Merge Mesa 23.1.9
Diffstat (limited to 'lib/mesa/src/gallium/drivers/lima/lima_gpu.h')
-rw-r--r-- | lib/mesa/src/gallium/drivers/lima/lima_gpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/drivers/lima/lima_gpu.h b/lib/mesa/src/gallium/drivers/lima/lima_gpu.h index 7a23fc769..4e3ea65d0 100644 --- a/lib/mesa/src/gallium/drivers/lima/lima_gpu.h +++ b/lib/mesa/src/gallium/drivers/lima/lima_gpu.h @@ -120,11 +120,15 @@ struct lima_render_state { plbu_cmd[i++] = v2; \ } while (0) +#define PLBU_BLOCK_W_MASK 0xff +#define PLBU_BLOCK_H_MASK 0xff + #define PLBU_CMD_BLOCK_STEP(shift_min, shift_h, shift_w) \ PLBU_CMD(((shift_min) << 28) | ((shift_h) << 16) | (shift_w), 0x1000010C) #define PLBU_CMD_TILED_DIMENSIONS(tiled_w, tiled_h) \ PLBU_CMD((((tiled_w) - 1) << 24) | (((tiled_h) - 1) << 8), 0x10000109) -#define PLBU_CMD_BLOCK_STRIDE(block_w) PLBU_CMD((block_w) & 0xff, 0x30000000) +#define PLBU_CMD_BLOCK_STRIDE(block_w) \ + PLBU_CMD((block_w) & PLBU_BLOCK_W_MASK, 0x30000000) #define PLBU_CMD_ARRAY_ADDRESS(gp_stream, block_num) \ PLBU_CMD(gp_stream, 0x28000000 | ((block_num) - 1) | 1) #define PLBU_CMD_VIEWPORT_LEFT(v) PLBU_CMD(v, 0x10000107) |