Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/gpu_cmds: be ready to use xe2 gpgpu fill on newer platforms
@ 2024-04-25 12:13 Dominik Grzegorzek
  2024-04-25 12:28 ` Manszewski, Christoph
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Dominik Grzegorzek @ 2024-04-25 12:13 UTC (permalink / raw)
  To: igt-dev; +Cc: Dominik Grzegorzek

Doing xe2 gpgpu pipeline implementation we mostly taken into account
possibility of reusing the implementation for future platforms.
But not everywhere. Make it common.

Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
---
 lib/gpu_cmds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c
index f37e725e7..40522d58e 100644
--- a/lib/gpu_cmds.c
+++ b/lib/gpu_cmds.c
@@ -1030,7 +1030,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)
 	intel_bb_out(ibb, 0);
 
 	/* stateless data port */
-	tmp = intel_graphics_ver(ibb->devid) == IP_VER(20, 0) ? 0 : BASE_ADDRESS_MODIFY;
+	tmp = intel_graphics_ver(ibb->devid) >= IP_VER(20, 0) ? 0 : BASE_ADDRESS_MODIFY;
 	intel_bb_out(ibb, 0 | tmp);                  //dw3
 
 	/* surface */
@@ -1056,7 +1056,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)
 	/* dynamic state buffer size */
 	intel_bb_out(ibb, 1 << 12 | 1);                             //dw13
 	/* indirect object buffer size */
-	if (intel_graphics_ver(ibb->devid) == IP_VER(20, 0))	    //dw14
+	if (intel_graphics_ver(ibb->devid) >= IP_VER(20, 0))	    //dw14
 		intel_bb_out(ibb, 0);
 	else
 		intel_bb_out(ibb, 0xfffff000 | 1);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-06  7:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 12:13 [PATCH i-g-t] lib/gpu_cmds: be ready to use xe2 gpgpu fill on newer platforms Dominik Grzegorzek
2024-04-25 12:28 ` Manszewski, Christoph
2024-04-25 13:51 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-04-25 13:55 ` ✓ CI.xeBAT: " Patchwork
2024-04-25 18:30 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-04-26  4:00 ` ✗ CI.xeFULL: " Patchwork
2024-05-06  7:26 ` [PATCH i-g-t] " Zbigniew Kempczyński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox