diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-08-06 11:50:37 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-08-07 08:58:23 +1000 |
commit | 04c6feb12c20bcb99a25a2b75f386b474637748f (patch) | |
tree | 0fe425c180937d92d7f0b4df941164ab4059915a /src/amd/vulkan | |
parent | 16577f500297ff4ea73ae646b87b3f92e4a3d7cf (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cs.h b/src/amd/vulkan/radv_cs.h index d21acba7e8e..16649c55e6a 100644 --- a/src/amd/vulkan/radv_cs.h +++ b/src/amd/vulkan/radv_cs.h @@ -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) { - 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(num); radeon_emit(cs, PKT3(PKT3_SET_CONFIG_REG, num, 0)); |