mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
radv: remove redundant assertions in radeon_emit_{array}()
The common helpers already have assertions. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38740>
This commit is contained in:
parent
262fc80e45
commit
b444dc145a
1 changed files with 2 additions and 10 deletions
|
|
@ -36,17 +36,9 @@ radeon_check_space(struct radeon_winsys *ws, struct ac_cmdbuf *cs, unsigned need
|
||||||
|
|
||||||
#define radeon_end() ac_cmdbuf_end()
|
#define radeon_end() ac_cmdbuf_end()
|
||||||
|
|
||||||
#define radeon_emit(value) \
|
#define radeon_emit(value) ac_cmdbuf_emit(value)
|
||||||
do { \
|
|
||||||
assert(__cs_num < __cs_reserved_dw); \
|
|
||||||
ac_cmdbuf_emit(value); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#define radeon_emit_array(values, num) \
|
#define radeon_emit_array(values, num) ac_cmdbuf_emit_array(values, num)
|
||||||
do { \
|
|
||||||
assert(__cs_num + (num) <= __cs_reserved_dw); \
|
|
||||||
ac_cmdbuf_emit_array(values, num); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/* Packet building helpers. Don't use directly. */
|
/* Packet building helpers. Don't use directly. */
|
||||||
#define __radeon_set_reg_seq(reg, num, idx, prefix_name, packet, reset_filter_cam) \
|
#define __radeon_set_reg_seq(reg, num, idx, prefix_name, packet, reset_filter_cam) \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue