v3d: Rename MAX_JOB_SCISSORS to V3D_JOB_MAX_SCISSORS

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35042>
This commit is contained in:
Jose Maria Casanova Crespo 2025-05-19 19:05:11 +02:00 committed by Marge Bot
parent ed16884bfa
commit a8c3767386
2 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ void v3d_job_add_bo(struct v3d_job *job, struct v3d_bo *bo);
#define V3D_MAX_FS_INPUTS 64
#define MAX_JOB_SCISSORS 16
#define V3D_JOB_MAX_SCISSORS 16
#define V3D_JOB_MAX_BO_HANDLE_COUNT 2048
#define V3D_JOB_MAX_BO_REFERENCED_SIZE (768 * 1024 * 1024)
@ -418,7 +418,7 @@ struct v3d_job {
struct {
uint32_t min_x, min_y;
uint32_t max_x, max_y;
} rects[MAX_JOB_SCISSORS];
} rects[V3D_JOB_MAX_SCISSORS];
} scissor;
/** @} */

View file

@ -270,7 +270,7 @@ v3dX(emit_state)(struct pipe_context *pctx)
job->scissor.disabled = true;
} else if (!job->scissor.disabled &&
(v3d->dirty & V3D_DIRTY_SCISSOR)) {
if (job->scissor.count < MAX_JOB_SCISSORS) {
if (job->scissor.count < V3D_JOB_MAX_SCISSORS) {
job->scissor.rects[job->scissor.count].min_x =
v3d->scissor.minx;
job->scissor.rects[job->scissor.count].min_y =