mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
panvk/csf: add CS_REG_SCRATCH_COUNT
Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32360>
This commit is contained in:
parent
76faa6f3f3
commit
06cc6e82cf
1 changed files with 4 additions and 2 deletions
|
|
@ -180,11 +180,13 @@ enum panvk_cs_regs {
|
|||
PANVK_CS_REG_SUBQUEUE_CTX_END = 91,
|
||||
};
|
||||
|
||||
#define CS_REG_SCRATCH_COUNT \
|
||||
(PANVK_CS_REG_SCRATCH_END - PANVK_CS_REG_SCRATCH_START + 1)
|
||||
|
||||
static inline struct cs_index
|
||||
cs_scratch_reg_tuple(struct cs_builder *b, unsigned start, unsigned count)
|
||||
{
|
||||
assert(PANVK_CS_REG_SCRATCH_START + start + count - 1 <=
|
||||
PANVK_CS_REG_SCRATCH_END);
|
||||
assert(start + count <= CS_REG_SCRATCH_COUNT);
|
||||
return cs_reg_tuple(b, PANVK_CS_REG_SCRATCH_START + start, count);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue