Skip to content

Commit 81ce8f0

Browse files
icklerodrigovivi
authored andcommitted
drm/i915/gt: Correct surface base address for renderclear
The surface_state_base is an offset into the batch, so we need to pass the correct batch address for STATE_BASE_ADDRESS. Fixes: 47f8253 ("drm/i915/gen7: Clear all EU/L3 residual contexts") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Cc: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com> Cc: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Cc: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Cc: <stable@vger.kernel.org> # v5.7+ Link: https://patchwork.freedesktop.org/patch/msgid/20210210122728.20097-1-chris@chris-wilson.co.uk (cherry picked from commit 1914911) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 80cf9a8 commit 81ce8f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/gt/gen7_renderclear.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ gen7_emit_state_base_address(struct batch_chunk *batch,
240240
/* general */
241241
*cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY;
242242
/* surface */
243-
*cs++ = batch_addr(batch) | surface_state_base | BASE_ADDRESS_MODIFY;
243+
*cs++ = (batch_addr(batch) + surface_state_base) | BASE_ADDRESS_MODIFY;
244244
/* dynamic */
245245
*cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY;
246246
/* indirect */

0 commit comments

Comments
 (0)