Mesa (main): vc4: remove redundant initialization
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 22 08:45:33 UTC 2022
Module: Mesa
Branch: main
Commit: db8a202b41a706b9f7c5c12aea24736418ccabf2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db8a202b41a706b9f7c5c12aea24736418ccabf2
Author: Juan A. Suarez Romero <jasuarez at igalia.com>
Date: Fri Feb 18 13:53:30 2022 +0100
vc4: remove redundant initialization
These assignments are not required.
Partially fixes https://gitlab.freedesktop.org/mesa/mesa/-/issues/3966
Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15080>
---
src/gallium/drivers/vc4/vc4_blit.c | 9 ---------
src/gallium/drivers/vc4/vc4_qir.c | 1 -
2 files changed, 10 deletions(-)
diff --git a/src/gallium/drivers/vc4/vc4_blit.c b/src/gallium/drivers/vc4/vc4_blit.c
index 9f4ab89e57f..e63ef6108fb 100644
--- a/src/gallium/drivers/vc4/vc4_blit.c
+++ b/src/gallium/drivers/vc4/vc4_blit.c
@@ -132,15 +132,6 @@ vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
struct vc4_job *job = vc4_get_job(vc4, dst_surf, NULL);
pipe_surface_reference(&job->color_read, src_surf);
- /* If we're resolving from MSAA to single sample, we still need to run
- * the engine in MSAA mode for the load.
- */
- if (!job->msaa && info->src.resource->nr_samples > 1) {
- job->msaa = true;
- job->tile_width = 32;
- job->tile_height = 32;
- }
-
job->draw_min_x = info->dst.box.x;
job->draw_min_y = info->dst.box.y;
job->draw_max_x = info->dst.box.x + info->dst.box.width;
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 0d104c06150..9c7e735e9ec 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -808,7 +808,6 @@ qir_SF(struct vc4_compile *c, struct qreg src)
!c->defs[src.index] ||
last_inst != c->defs[src.index]) {
last_inst = qir_MOV_dest(c, qir_reg(QFILE_NULL, 0), src);
- last_inst = (struct qinst *)c->cur_block->instructions.prev;
}
last_inst->sf = true;
}
More information about the mesa-commit
mailing list