From bec7e79f33aefc049fefaf3142913ca0e60e9fc5 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Fri, 16 Aug 2024 08:19:25 +0200 Subject: [PATCH] freedreno: don't require binning and non-binning inputs to match This shouldn't be necessary anymore since f6f7bc29 ("freedreno/a6xx: Program VFD_DEST_CNTL from program stateobj"). Signed-off-by: Job Noorman Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_program.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_program.cc b/src/gallium/drivers/freedreno/a6xx/fd6_program.cc index 07c6dbbbb57..bed14e4c409 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_program.cc +++ b/src/gallium/drivers/freedreno/a6xx/fd6_program.cc @@ -543,7 +543,6 @@ emit_vfd_dest(struct fd_ringbuffer *ring, const struct ir3_shader_variant *vs) OUT_PKT4(ring, REG_A6XX_VFD_DEST_CNTL_INSTR(0), attr_count); for (uint32_t i = 0; i < attr_count; i++) { - assert(vs->inputs[i].compmask); assert(!vs->inputs[i].sysval); OUT_RING(ring, A6XX_VFD_DEST_CNTL_INSTR_WRITEMASK(vs->inputs[i].compmask) | @@ -1398,16 +1397,6 @@ fd6_program_create(void *data, const struct ir3_shader_variant *bs, state->binning_stateobj = fd_ringbuffer_new_object(ctx->pipe, 0x1000); state->stateobj = fd_ringbuffer_new_object(ctx->pipe, 0x1000); -#if MESA_DEBUG - if (!ds) { - for (unsigned i = 0; i < bs->inputs_count; i++) { - if (vs->inputs[i].sysval) - continue; - assert(bs->inputs[i].regid == vs->inputs[i].regid); - } - } -#endif - if (hs) { /* Allocate the fixed-size tess factor BO globally on the screen. This * lets the program (which ideally we would have shared across contexts,