diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h index e8da1052385..b58aef7f28b 100644 --- a/src/broadcom/common/v3d_limits.h +++ b/src/broadcom/common/v3d_limits.h @@ -24,8 +24,6 @@ #ifndef V3D_LIMITS_H #define V3D_LIMITS_H -#define V3D_CL_MAX_INSTR_SIZE 25 - /* Number of channels a QPU thread executes in parallel. Also known as * gl_SubGroupSizeARB. */ diff --git a/src/broadcom/vulkan/v3dvx_cl.c b/src/broadcom/vulkan/v3dvx_cl.c index 62b982566ae..9a09545b63f 100644 --- a/src/broadcom/vulkan/v3dvx_cl.c +++ b/src/broadcom/vulkan/v3dvx_cl.c @@ -175,16 +175,6 @@ v3dv_cl_ensure_space(struct v3dv_cl *cl, uint32_t space, uint32_t alignment) void v3dv_cl_ensure_space_with_branch(struct v3dv_cl *cl, uint32_t space) { - /* - * The CLE processor in the simulator tries to read V3D_CL_MAX_INSTR_SIZE - * bytes form the CL for each new instruction. If the last instruction in our - * CL is smaller than that, and there are not at least V3D_CL_MAX_INSTR_SIZE - * bytes until the end of the BO, it will read out of bounds and possibly - * cause a GMP violation interrupt to trigger. Ensure we always have at - * least that many bytes available to read with the last instruction. - */ - space += V3D_CL_MAX_INSTR_SIZE; - if (v3dv_cl_offset(cl) + space <= cl->size) return;