From: Jan Maslak <jan.maslak@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: zbigniew.kempczynski@intel.com, Jan Maslak <jan.maslak@intel.com>
Subject: [PATCH 1/1] lib/rendercopy: Use the Xe2+ depth buffer packet
Date: Thu, 10 Sep 2026 14:39:34 +0200 [thread overview]
Message-ID: <20260910123935.4183522-2-jan.maslak@intel.com> (raw)
In-Reply-To: <20260910123935.4183522-1-jan.maslak@intel.com>
Genxml provides a dedicated 3DSTATE_DEPTH_BUFFER definition for Xe2 and
newer platforms. Use GFX20_3DSTATE_DEPTH_BUFFER on those platforms,
keeping the existing GFX125 and GFX9 selections for older hardware.
Signed-off-by: Jan Maslak <jan.maslak@intel.com>
---
lib/rendercopy_gen9.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 31913badba..d3f793fcc3 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -1043,7 +1043,11 @@ gen9_emit_depth(struct intel_bb *ibb)
igt_genxml_emit(ibb, GFX9_3DSTATE_WM_DEPTH_STENCIL, wds) { }
- if (HAS_4TILE(ibb->devid)) {
+ if (intel_gen(ibb->devid) >= 20) {
+ igt_genxml_emit(ibb, GFX20_3DSTATE_DEPTH_BUFFER, db) {
+ db.MOCS = mocs;
+ }
+ } else if (HAS_4TILE(ibb->devid)) {
igt_genxml_emit(ibb, GFX125_3DSTATE_DEPTH_BUFFER, db) {
db.MOCS = mocs;
}
--
2.43.0
next prev parent reply other threads:[~2026-09-10 12:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 12:39 [PATCH 0/1] lib/rendercopy: Use the Xe2+ depth buffer packet Jan Maslak
2026-09-10 12:39 ` Jan Maslak [this message]
2026-09-10 13:33 ` [PATCH 1/1] " Hajda, Andrzej
2026-09-10 16:03 ` Jan Maslak
2026-09-10 16:22 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-09-10 17:06 ` ✓ i915.CI.BAT: " Patchwork
2026-09-10 23:44 ` ✗ Xe.CI.FULL: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260910123935.4183522-2-jan.maslak@intel.com \
--to=jan.maslak@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.