pvr: Remove shareds_dest_offset from load_op

The starting offset is always `0` and there isn't really a reason
for why it should be non-zero, we always want to DMA into the
shareds from the beginning, for the load_ops, so removing it.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Karmjit Mahil 2023-10-13 17:10:00 +01:00 committed by Marge Bot
parent c23f81cd11
commit 72923ee62f
3 changed files with 0 additions and 3 deletions

View file

@ -824,7 +824,6 @@ static VkResult pvr_load_op_pds_data_create_and_upload(
PDSINST_DOUT_FIELDS_DOUTD_SRC1,
value) {
value.dest = ROGUE_PDSINST_DOUTD_DEST_COMMON_STORE;
value.a0 = load_op->shareds_dest_offset;
value.bsize = load_op->shareds_count;
}

View file

@ -1116,7 +1116,6 @@ struct pvr_load_op {
struct pvr_suballoc_bo *usc_frag_prog_bo;
uint32_t const_shareds_count;
uint32_t shareds_dest_offset;
uint32_t shareds_count;
struct pvr_pds_upload pds_frag_prog;

View file

@ -1163,7 +1163,6 @@ pco_shader *pvr_uscgen_loadop(pco_ctx *ctx, struct pvr_load_op *load_op)
load_op->const_shareds_count = shared_regs;
load_op->shareds_count = shared_regs;
load_op->shareds_dest_offset = 0;
return build_shader(ctx, b.shader, &data);
}