mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
radv: Fix config reg assert.
Using the wrong bounds Fixes: "219d6939df8 radv: add more assertions to make sure packets are correctly emitted" Reviewed-by: Andres Rodriguez <andresx7@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
16577f5002
commit
04c6feb12c
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ static inline unsigned radeon_check_space(struct radeon_winsys *ws,
|
||||||
|
|
||||||
static inline void radeon_set_config_reg_seq(struct radeon_cmdbuf *cs, unsigned reg, unsigned num)
|
static inline void radeon_set_config_reg_seq(struct radeon_cmdbuf *cs, unsigned reg, unsigned num)
|
||||||
{
|
{
|
||||||
assert(reg >= SI_CONTEXT_REG_OFFSET && reg < SI_CONFIG_REG_END);
|
assert(reg >= SI_CONFIG_REG_OFFSET && reg < SI_CONFIG_REG_END);
|
||||||
assert(cs->cdw + 2 + num <= cs->max_dw);
|
assert(cs->cdw + 2 + num <= cs->max_dw);
|
||||||
assert(num);
|
assert(num);
|
||||||
radeon_emit(cs, PKT3(PKT3_SET_CONFIG_REG, num, 0));
|
radeon_emit(cs, PKT3(PKT3_SET_CONFIG_REG, num, 0));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue